Skip to content

Instantly share code, notes, and snippets.

@joninsky
Created December 13, 2018 01:51
Show Gist options
  • Save joninsky/c19ab9c1155570664ef0ebc7b7a9801e to your computer and use it in GitHub Desktop.
Save joninsky/c19ab9c1155570664ef0ebc7b7a9801e to your computer and use it in GitHub Desktop.
Lazy Apollo
@UIApplicationMain
class AppDelegate: UIResponder {
/// The window object.
var window: UIWindow?
/// The Apollo Controller.
lazy var apolloController = ApolloController()
}
extension AppDelegate: UIApplicationDelegate {
///The App Delegate didFinishLaunchingWithOptions function
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
return true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment