Skip to content

Commit

Permalink
Updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
shu223 committed Mar 11, 2016
1 parent bd18e04 commit 5152219
Showing 1 changed file with 31 additions and 21 deletions.
52 changes: 31 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,9 @@ Great For:
- **Pulses of beacons (iBeacon)**
- Map Annotations

##Installation

##How to use

1. Add PulsingHaloLayer.h,m into your project
2. **Just initiate and add to your view layer**.

````
PulsingHaloLayer *halo = [PulsingHaloLayer layer];
halo.position = self.view.center;
[self.view.layer addSublayer:halo];
````

###Install with CocoaPods
###CocoaPods

Edit your Podfile.

Expand All @@ -32,24 +22,44 @@ pod "PulsingHalo"

And `$ pod install`

###Manual

##Customization
Add PulsingHaloLayer.h,m into your project.

###Number of Halos
##How to use

Use `haloLayerNumber` property.
Just **initiate and add** to your view layer.

```
halo.haloLayerNumber = 3;
###Swift

```swift.SomeViewController.swift
let halo = PulsingHaloLayer()
halo.position = view.center
view.layer.addSublayer(halo)
halo.start()
```

Or you can use `initWithLayerNumber:`.
###Objective-C

````
PulsingHaloLayer *halo = [[PulsingHaloLayer alloc] initWithLayerNumber:3];
```objc:SomeViewController.m
PulsingHaloLayer *halo = [PulsingHaloLayer layer];
halo.position = self.view.center;
[self.view.layer addSublayer:halo];
````
[halo start];
```




##Customizations

###Number of Halos

Use `haloLayerNumber` property.

```
halo.haloLayerNumber = 3;
```

###radius

Expand Down

0 comments on commit 5152219

Please sign in to comment.