Skip to content

Commit 3c2cf14

Browse files
committed
Merge branch 'master' of https://github.com/sadeghgoo/MagicTimer
2 parents 53b3987 + b00778a commit 3c2cf14

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,12 @@ The mode of the timer. default is stop watch.
130130
```swift
131131
public var mode: MGCountMode { get set }
132132
```
133+
### `didStateChange`
134+
A callback that notifies when timer state did change.
135+
```swift
136+
public var didStateChange: ((MGStateManager.TimerState) -> Void)?
137+
```
138+
133139
# Obsreve
134140
You can observe elapsed time in two ways. <br />
135141
**First**: using `elapsedTime` property.

0 commit comments

Comments
 (0)