Skip to content

Instantly share code, notes, and snippets.

@bill350
Created April 1, 2018 21:29
Show Gist options
  • Save bill350/018e70ea47fc5a2f7aecbb084a244ab4 to your computer and use it in GitHub Desktop.
Save bill350/018e70ea47fc5a2f7aecbb084a244ab4 to your computer and use it in GitHub Desktop.
protocol ErrorDisplayable {
static func show<T: ErrorView>(
fromViewController viewController: UIViewController,
animated: Bool,
completion: ((Bool) -> Swift.Void)?) -> T
static func show<T: ErrorView>(
fromView view: UIView,
insets: UIEdgeInsets, animated: Bool,
completion: ((Bool) -> Swift.Void)?) -> T
func hide(animated: Bool, completion: ((Bool) -> Swift.Void)?)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment