iOS Component For Creating A Pulsing Animation.
Great For And Beacons:
- Beacons for iBeacon
- Map Annotations
##How to use
- Add PulsingHaloLayer.h,m into your project
- Initiate and add to your view.
PulsingHaloLayer *halo = [PulsingHaloLayer layer];
halo.position = self.view.center;
[self.view.layer addSublayer:halo];
##Install with CocoaPods
Add Podfile.
pod "PulsingHalo"
And
$ pod install
##Customization
###radius
Use radius
property.
self.halo.radius = 240.0;
###color
Use backgroundColor
property.
UIColor *color = [UIColor colorWithRed:0.7
green:0.9
blue:0.3
alpha:1.0];
self.halo.backgroundColor = color.CGColor;
###animation duration
Use animationDuration
or pulseInterval
property.
##Demo
You can try to change radius and color properties with demo app.
##Special Thanks
It's inspired by SVPulsingAnnotationView.