0.4.0
Pre-release
Pre-release
Changed
- Replaced
FirstResponderStateChangeHandlertypealias with a real type that
wraps a change handler closure. - Replaced
FirstResponderStatewith a single boolean value to represent the
first responder state.
Added
- The ability to easily update external state when the first responder state
changes usingFirstResponderStateChangeHandler.updates($someBinding). - Easily animate first responder state changes using the
.animation()modifier
onFirstResponderStateChangeHandler FirstResponderStateChangeHandlercan also be given closures for custom
control over whether or not the text field should become or resign first
responder, hooking into theshouldBeginEditingandshouldEndEditing
delegate methods.