一个好用的插件DoraemonKit

做项目时发现一个非常有趣好用的插件DoraemonKit 源自于滴滴开发项目团队

具体使用 pod方式

pod 'DoraemonKit/Core', '~> 2.0.0', :configurations => ['Debug'] #必选

有很多别的插件可用,自己可以去github上看

在此做个记录


具体使用方法很简单

@UIApplicationMain

class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?

    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {

        UIViewController.swizzlingMethodOnce()



        window = UIWindow(frame: UIScreen.main.bounds)

        window?.backgroundColor = .white

        window?.makeKeyAndVisible()


        window?.rootViewController = UINavigationController(rootViewController: MainViewController())


        DoraemonManager.shareInstance().install()


        // Override point for customization after application launch.

        return true

    }

}

做个记录 方便后面自己remark

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

友情链接更多精彩内容