Animated Pulse layer and view
this is an expermintal repo and will be updated soon. you feedback is welcome.
- iOS 8.0+
- Xcode 8.0+
- Swift 3.0+
CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:
$ gem install cocoapodsTo integrate Pulse into your Xcode project using CocoaPods, specify it in your Podfile:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
#https://github.com/omiz/Pulse
pod 'Pulse', '~> 1.0'Then, run the following command:
$ pod installIf you prefer not to use CocoaPods dependency manager, you can integrate Pulse into your project manually.
Copy the .swift files into your project or clone and include Pulse repo into your project
let pulseLayer = PulseLayer()
pulseLayer.position = view.center
pulseLayer.count = 10
view.layer.addSublayer(pulseLayer)
pulseLayer.animate()
//when needed
//pulseLayer.stop()Enjoy the Inspectable parameters
let pulseView = PulseView(frame: frame)
pulseView.count = 10
pulseView.color = UIColor.blue
view.addSubview(pulseView)
pulseView.isAnimating = true
//when needed
//pulseView.isAnimating = false- Submit to CocoaPods
- Add demo
- your suggestions
MIT
