Skip to content

Commit

Permalink
Updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
shu223 committed Aug 4, 2016
1 parent 499f05f commit cd85593
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Just **initiate and add** to your view layer.

###Swift

```swift.SomeViewController.swift
```swift:SomeViewController.swift
let halo = PulsingHaloLayer()
halo.position = view.center
view.layer.addSublayer(halo)
Expand All @@ -75,23 +75,23 @@ halo.position = self.view.center;

Use `haloLayerNumber` property.

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

###radius

Use `radius` property.

````
````objc
self.halo.radius = 240.0;
````

###color

Use `backgroundColor` property.

````
````objc
UIColor *color = [UIColor colorWithRed:0.7
green:0.9
blue:0.3
Expand All @@ -112,9 +112,10 @@ Initialize using `initWithRepeatCount:` method, or set `repeatCount` property. T
###animation key values and times
Use properties `fromValueForRadius`, `fromValueForAlpha` and `keyTimeForHalfOpacity`.
Use properties `fromValueForRadius` or `keyTimeForHalfOpacity`.
###enable/disable timing function for animation
Use property `useTimingFunction`
##Demo
Expand Down

0 comments on commit cd85593

Please sign in to comment.