Skip to content

Commit

Permalink
added format gif
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicegginton committed Sep 30, 2019
1 parent 84abc53 commit df7364e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Binary file added Assets/format.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,13 @@ The spinner object has a default format of `{S} {T}`, this renders the animated
``` swift
let mySpinner = Spinner(.dots, "My Spinner", format : "{T} - {S}")
```
<p align="center">
<br>
<img src="https://raw.githubusercontent.com/dominicegginton/Spinner/master/Assets/format.gif">
<br>
<br>
</p>

#### Creating Custom Patterns
We have **60** animated spinner patterns, however to create your own, define a new `SpinnerPattern(multiFrame: [String])`. The default speed for multi frame patterns is 0.08, to change this pass a double into the spinner initializer.
``` swift
Expand Down

0 comments on commit df7364e

Please sign in to comment.