Skip to content

Commit e6a029c

Browse files
Merge remote-tracking branch 'origin/master'
2 parents 0e45ab1 + 419c5f6 commit e6a029c

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
<p align="center">
1313
<a href="#installation">Installation</a>
1414
• <a href="#usage">Usage</a>
15+
• <a href="#debugging">Debugging</a>
1516
• <a href="#animatable-properties">Animatable Properties</a>
1617
• <a href="#license">License</a>
1718
</p>
@@ -224,6 +225,9 @@ circle.dance.isRunning: Bool { get }
224225
circle.dance.isReversed: Bool { get, set }
225226
```
226227

228+
`circle.dance.tag: Int` (see [Debugging](#debugging))
229+
230+
227231
### What About Constraints?
228232

229233
Dance works great with constraints. To animate constraint changes:
@@ -262,6 +266,18 @@ print(circle.dance.pause().progress)
262266
circle.dance.start().reverse()
263267
```
264268

269+
### Debugging
270+
271+
Dance is *forgiving*, meaning that it handles any mistakes that you might make without causing any runtime errors. If you do make a mistake, for example starting an animation that doesn't exist, then Dance will print the following in the console:
272+
273+
`** Dance Error: view with dance.tag = <tag> does not have an active animation! **`
274+
275+
Dance assigns each dance animation a dance tag, which you can access like so:
276+
277+
`circle.dance.tag`
278+
279+
This way you can keep track of you views' dance animations and easily handle any of Dance's error print logs.
280+
265281
## Animatable Properties
266282

267283
| UIView Property | Changes you can make |

0 commit comments

Comments
 (0)