Skip to content

HoestAG/Pulsator

 
 

Repository files navigation

Pulsator

Carthage compatible Badge w/ Version License

Pulse animation for iOS written with Swift.

Great For:

  • Pulses of Bluetooth, BTLE, beacons (iBeacon), etc.
  • Map Annotations

##Installation

###CocoaPods

Add into your Podfile.

pod "Pulsator"

Then $ pod install

###Carthage

Add into your Cartfile.

github "shu223/Pulsator"

Then $ carthage update

##How to use

Just 3 lines!

Initiate and add to your view's layer, then call start!

let pulsator = Pulsator()
view.layer.addSublayer(pulsator)
pulsator.start()

##Customizations

###Number of Pulses

Use numPulse property.

pulsator.numPulse = 3

###Radius

Use radius property.

pulsator.radius = 240.0

###Color

Just set the backgroundColor property.

pulsator.backgroundColor = UIColor(red: 1, green: 1, blue: 0, alpha: 1).CGColor

###Animation Duration

Use following properties

  • animationDuration : duration for each pulse
  • pulseInterval : interval between pulses

###Easing

You can set the timingFunction property.

###Repeat

Use repeatCount property.

##Demo

You can try to change the radius, backgroundColor or other properties with the demo app.

  • Example/PulsatorDemo.xcodeproj
<iframe src="https://appetize.io/embed/45kwjngp1xud45eeqhxqy8qqew?device=iphone6s&scale=75&autoplay=false&orientation=portrait&deviceColor=black" width="312px" height="653px" frameborder="0" scrolling="no"></iframe>

##Objective-C version

##Author

Shuichi Tsutsumi

I'm an iOS freelancer in Japan, welcome works from abroad.

You can check my past works here:

Other contacts:

Packages

No packages published

Languages

  • Swift 91.8%
  • Ruby 4.7%
  • Objective-C 3.5%