2013-12-05 19:07:16 +09:00
2013-12-05 18:40:23 +09:00
2013-12-05 16:41:20 +09:00
2013-12-05 01:38:23 -08:00
2013-12-05 01:38:23 -08:00
2013-12-07 04:37:07 +09:00
2013-12-10 09:40:15 +09:00

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.

S
Description
iOS Component for creating a pulsing animation.
Readme MIT 710 KiB
Languages
Objective-C 96.8%
Ruby 3.2%