Skip to content

Commit b41d18d

Browse files
committed
project: add debounce example in README
1 parent f8c7b1c commit b41d18d

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,12 @@ Allows to create a SwiftUI binding on a property of the current state, sending a
382382

383383
```swift
384384
self.viewStateMachine.binding(keypath: \.persons, send: .closeButtonWasPressed)
385+
```
386+
387+
Allows to create a SwiftUI binding on a property of the current state, sending an Event when the binding changes, debounced with the specified dueTime.
388+
389+
```swift
390+
self.viewStateMachine.binding(keypath: \.persons, send: .closeButtonWasPressed).debounce(for: .seconds(1))
385391
```
386392
</details>
387393

0 commit comments

Comments
 (0)