Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
artur-ios-dev authored Apr 24, 2018
1 parent e06ef2c commit ac16391
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,17 @@ pod 'VariousViewsEffects'
## Usage

```swift
exampleView.explode()
view.explode()

exampleView.breakGlass()
view.breakGlass()

view.addSnowflakes(amount: 10, speed: .slow)
```

You can also customize how many pieces views breaks on, if the `view` which you call it on should be removed once animation is finished and also you can define a completion block which will be called after animation finishes.

```swift
exampleView.explode(size: GridSize(columns: 15, rows: 21), removeAfterCompletion: true, completion: {
view.explode(size: GridSize(columns: 15, rows: 21), removeAfterCompletion: true, completion: {
print("animation finished")
})
```
Expand Down

0 comments on commit ac16391

Please sign in to comment.