Created
December 3, 2018 12:35
-
-
Save candostdagdeviren/a14046e9c02d9a98899deeb179872726 to your computer and use it in GitHub Desktop.
Swift Post Testability Example Code
This file contains 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
protocol URLOpening { | |
func canOpenURL(_ url: URL) -> Bool | |
func open(_ url: URL, | |
options: [UIApplication.OpenExternalURLOptionsKey : Any], | |
completionHandler completion: ((Bool) -> Void)?) | |
} | |
extension UIApplication: URLOpening {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment