/PulsingHalo

iOS Component For Creating A Pulsing Animation.

Primary LanguageObjective-CMIT LicenseMIT

PulsingHalo

iOS Component For Creating A Pulsing Animation.

Great For:

  • Beacons for iBeacon
  • Map Annotations

##How to use

  1. Add PulsingHaloLayer.h,m into your project
  2. 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 the radius and color properties with demo app.

##Special Thanks

It's inspired by SVPulsingAnnotationView.