Skip to content

Releases: lukeredpath/swift-responsive-textfield

0.4.0

16 Mar 10:51

Choose a tag to compare

0.4.0 Pre-release
Pre-release

Changed

  • Replaced FirstResponderStateChangeHandler typealias with a real type that
    wraps a change handler closure.
  • Replaced FirstResponderState with a single boolean value to represent the
    first responder state.

Added

  • The ability to easily update external state when the first responder state
    changes using FirstResponderStateChangeHandler.updates($someBinding).
  • Easily animate first responder state changes using the .animation() modifier
    on FirstResponderStateChangeHandler
  • FirstResponderStateChangeHandler can also be given closures for custom
    control over whether or not the text field should become or resign first
    responder, hooking into the shouldBeginEditing and shouldEndEditing
    delegate methods.

0.3.0

16 Mar 02:27

Choose a tag to compare

0.3.0 Pre-release
Pre-release

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 a StandardEditActionHandling value using the standardEditActionHandler
    parameter when initialising.

Changed

  • Remove RunLoop tick when updating first responder state.
  • Replaced isEditing binding with a firstResponderDemand binding and an
    onFirstResponderStateChanged: callback function.

0.2.0

15 Mar 01:07

Choose a tag to compare

0.2.0 Pre-release
Pre-release
  • Added delete key handling callback
  • Added callback for preventing text changes
  • Documentation improvements

Initial release

14 Mar 15:55

Choose a tag to compare

Initial release Pre-release
Pre-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