Created
April 1, 2018 22:17
-
-
Save bill350/7772fe2905cc13569a3c29b24ce20fd4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // MARK: - UIViewController Default implementation | |
| extension FailableCore where Self: UIViewController { | |
| func showError(_ error: Swift.Error?) { | |
| let errorMessage = error?.localizedMessage ?? L10n.commonErrorMessage | |
| SwiftMessages.showAlert(title: errorMessage) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment