Functions
The following functions are available globally.
-
Rewrite the fatalError
Declaration
Swift
public func fatalError(_ message: @autoclosure () -> String = "", file: StaticString = #file, line: UInt = #line) -> Never
-
This is a
noreturn
function that pauses foreverDeclaration
Swift
public func unreachable() -> Never
-
Refresh the content and reload the view
Usage Example:
refresher(updateContent: {() -> Void in self.content.like() }, viewReload: { () -> Void in self.tableView.reloadDataWithAnimation()})
Declaration
Swift
func refresher(updateContent: @escaping () -> Void, viewReload: @escaping () -> Void)
-
Refresh the content and reload the view
Usage Example:
cancellableRefresher(updateContent: {() -> Void in self.content.like() }, viewReload: { () -> Void in self.tableView.reloadDataWithAnimation()})
Declaration
Swift
func cancellableRefresher(updateContent: @escaping () -> Void, viewReload: @escaping () -> Void)
-
Refresh the content,reload the view and show the refresh view
Usage Example:
refresherWithLoadingHUD(updateContent: {() -> Void in self.content.like() }, viewReload: { () -> Void in self.tableView.reloadDataWithAnimation(),ViewController.view,true})
Declaration
Swift
func refresherWithLoadingHUD(updateContent: @escaping () -> Void, viewReload: @escaping () -> Void, view: UIView, cancellable: Bool)
-
Undocumented
Declaration
Swift
func refresherWithLoadingHUD(updateContent: @escaping () -> Void, viewReload: @escaping () -> Void, view: UIView, info: String, cancellable: Bool)