在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:shu223/Pulsator开源软件地址:https://github.com/shu223/Pulsator开源编程语言:Swift 90.1%开源软件介绍:PulsatorPulse animation for iOS written with Swift. Great For:
InstallationCocoaPodsAdd into your Podfile.
Then CarthageAdd into your Cartfile.
Then How to useJust 3 lines! Initiate and add to your view's layer, then call let pulsator = Pulsator()
view.layer.addSublayer(pulsator)
pulsator.start() CustomizationsNumber of PulsesUse pulsator.numPulse = 3 RadiusUse pulsator.radius = 240.0 ColorJust set the pulsator.backgroundColor = UIColor(red: 1, green: 1, blue: 0, alpha: 1).cgColor Animation DurationUse following properties
EasingYou can set the RepeatUse DemoYou can try to change the
macOS supportAdd into your Podfile, then run
The usage is same as iOS. let pulsator = Pulsator()
view.layer?.addSublayer(pulsator)
pulsator.start() Objective-C versionThere is an ObjC version, but it's not maintained now. You can use Pulsator also with Objective-C.
AuthorShuichi Tsutsumi iOS freelancer in Japan. Welcome works from abroad!
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论