func application()

in ChartsDemo-iOS/Swift/AppDelegate.swift [18:36]


    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        // Override point for customization after application launch.
        self.window = UIWindow(frame: UIScreen.main.bounds)
        
        
        let vc = DemoListViewController()
        let nav = UINavigationController(rootViewController: vc)
        if #available(iOS 13.0, *) {
            let appearance = UINavigationBarAppearance()
            appearance.configureWithOpaqueBackground()
            nav.navigationBar.standardAppearance = appearance
            nav.navigationBar.scrollEdgeAppearance = appearance
        }
        
        window?.rootViewController = nav
        window?.makeKeyAndVisible()
        
        return true
    }