Skip to content

Instantly share code, notes, and snippets.

@HassanElDesouky
Created December 13, 2018 15:53
Show Gist options
  • Save HassanElDesouky/048f7bf740c3a53e005b3dfec60a2317 to your computer and use it in GitHub Desktop.
Save HassanElDesouky/048f7bf740c3a53e005b3dfec60a2317 to your computer and use it in GitHub Desktop.
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
window = UIWindow(frame: UIScreen.main.bounds)
window?.makeKeyAndVisible()
let layout = UICollectionViewFlowLayout()
let mainVC = ViewController(collectionViewLayout: layout)
window?.rootViewController = UINavigationController(rootViewController: mainVC)
return true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment