Skip to content

chenjianlei/LZSwiftAppDelegateKit

Repository files navigation

LZSwiftAppDelegateKit

CI Status Version License Platform

Example

import UIKit
import LZSwiftAppDelegateKit

@UIApplicationMain
class AppDelegate: LZAppDelegate {
    
    var window: UIWindow?
    
    override func application(_ application: UIApplication, willFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey : Any]? = nil) -> Bool {
        LZAppDelegateManager.share.regist([
            ModuleA(),
            ModuleB(),
            ModuleC(),
        ])
        return super.application(application, willFinishLaunchingWithOptions: launchOptions)
    }
    
    override func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey : Any]? = nil) -> Bool {
        window? = UIWindow.init(frame: UIScreen.main.bounds)
        window?.backgroundColor = .white
        window?.makeKeyAndVisible()
        window?.rootViewController = TabBarViewController()
        return super.application(application, didFinishLaunchingWithOptions: launchOptions)
    }
}


Author

chenjianlei, woshixiaolei@qq.com

License

LZSwiftAppDelegateKit is available under the MIT license. See the LICENSE file for more info.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published