Hair Powder for iPhoneX “M” Shape pattern baldness design. I hate iPhone X design. It can be rejected if you use this open source(developer.apple.com/ios/human-i…). Use this If you don’t care Guidelines
Install
CocoaPods
Add pod 'HairPowder'
to your Podfile.
##Usage
1. add Status Bar style to info.plist
You also can put next code to info.plist directly
<key>UIStatusBarStyle</key>
<string>UIStatusBarStyleLightContent</string>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
2. Run Powder Code
You Only have to is putting import and spread() function.
import UIKit
import HairPowder
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
HairPowder.instance.spread()
return true
}
}
LICENSE
HairPowder is under MIT license. See the LICENSE file for more info.
今天的文章又一款简单地去“刘海”方案工具类分享到此就结束了,感谢您的阅读。
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
如需转载请保留出处:https://bianchenghao.cn/19165.html