Skip to content

Instantly share code, notes, and snippets.

@zhihuitang
Created December 20, 2019 07:53
Show Gist options
  • Save zhihuitang/5dbfd4892060aabd5b6ca5259db0f378 to your computer and use it in GitHub Desktop.
Save zhihuitang/5dbfd4892060aabd5b6ca5259db0f378 to your computer and use it in GitHub Desktop.
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool
{
let timeline = TimelineViewController()
let navigation = UINavigationController(rootViewController: timeline)
let frame = UIScreen.main.bounds
window = UIWindow(frame: frame)
window!.rootViewController = navigation
window!.makeKeyAndVisible()
return true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment