Releases: lukeredpath/swift-responsive-textfield
Releases · lukeredpath/swift-responsive-textfield
0.4.0
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.
0.3.0
Added
- Supported standard edit actions can be customised using the
supportedStandardEditActions
parameter when initialising. - Added the ability to override and customise how standard edit actions are handled
by providing aStandardEditActionHandlingvalue using thestandardEditActionHandler
parameter when initialising.
Changed
- Remove RunLoop tick when updating first responder state.
- Replaced
isEditingbinding with afirstResponderDemandbinding and an
onFirstResponderStateChanged:callback function.
0.2.0
- Added delete key handling callback
- Added callback for preventing text changes
- Documentation improvements
Initial release
- Initial Release
- Binding-based text handling
- Binding-based first responder handling
- Styling view modifiers
- Secure text entry
- Return key handling
- Configuration system
- Demo project