ThenDynamicLaunch
从 LLDynamicLaunchScreen(https://github.com/internetWei/LLDynamicLaunchScreen) 分支而来
用法
首先
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
ThenDynamicLaunch.shared.config()
return true
}
然后
ThenDynamicLaunch.shared.replace(with: UIImage(named: "pexels-1"), direction: .portraitLight)
需求
- iOS 11.0+
安装
Swift 包管理器
- 文件 > Swift 包 > 添加包依赖
- 复制并粘贴
https://github.com/ghostcrying/ThenDynamicLaunch
然后按说明操作
Carthage
- 将此行添加到您的 Cartfile 中:
github "ghostcrying/ThenDynamicLaunch"
- 阅读官方说明
CocoaPods
- 安装 CocoaPods 的最新版本:
gem install cocoapods
- 将此行添加到您的 Podfile 中:
pod 'ThenDynamicLaunch'
- 安装 pod:
pod install