Last active
December 13, 2018 02:02
-
-
Save joninsky/336262e0b48a89e0d5a32244db4d3a57 to your computer and use it in GitHub Desktop.
ApolloProtocol
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 ApolloControllerAvailable { | |
var apolloController: ApolloController? { get } | |
} | |
extension ApolloControllerAvailable { | |
var apolloController: ApolloController? { | |
guard let appDelegate = UIApplication.shared.delegate as? AppDelegate else { | |
return nil | |
} | |
return appDelegate.apolloController | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment