Skip to content

Releases: lukeredpath/swift-responsive-textfield

v0.11.0

02 Aug 13:13
68770e6
Compare
Choose a tag to compare
v0.11.0 Pre-release
Pre-release
  • Adds support for setting a placeholder color (#14) - contribution by @mergesort.
  • Fixed combine-scheduler dependency to depend on the latest xctest-dynamic-overlay to avoid library rename.

0.10.1

31 Jul 19:12
0.10.1
b72eda3
Compare
Choose a tag to compare
0.10.1 Pre-release
Pre-release
  • Updates to the library to support Swift 6 and strict concurrency mode.

0.8.1

31 Aug 23:44
b76afc2
Compare
Choose a tag to compare
0.8.1 Pre-release
Pre-release
fix: Updating textColor and textAlignment when state changes (#15)

0.7.0

01 Nov 18:21
bea79f2
Compare
Choose a tag to compare
0.7.0 Pre-release
Pre-release

Removed hardcoded dependency on RunLoop.main, instead making use of the Combine scheduler abstraction.

This changes means that you can remove the async behaviour by overriding the default scheduler in the environment (RunLoop.main) with another scheduler, e.g. an .immediate scheduler.

0.6.0

29 Oct 14:32
eb5ab42
Compare
Choose a tag to compare
0.6.0 Pre-release
Pre-release
  • Ensure text field responder state changes always happen on the next runloop tick to avoid attribute graph cycles in Xcode 13.
  • Added improvements to support dynamic type.

0.5.2: Wrap calls to super in an explicit closure.

28 Mar 02:31
Compare
Choose a tag to compare

Fixed

  • Ensure responder demand is reset on the next runloop tick to avoid a runtime
    error due to a nested state update.

  • Workaround for what seems to be a compiler or xccov bug that causes coverage
    data to become malformed when passing a reference to a super implementation
    in a point-free manner.

0.5.1: Fix bug with standard edit action handling where original might not

22 Mar 11:32
Compare
Choose a tag to compare

Fixed

  • Bug where shouldUpdateViews was not getting reset correctly when first responder demand
    was fulfilled.
  • FirstResponderStateChangeHandler.receive(on:) operator was not passing it's options
    to the scheduler.
  • Fixed a bug in standard edit action handling where the original implementation would not get
    called if a standard edit action handling value was given but no override for the specific edit action
    existed.
  • README and documentation fixes.

0.5.0

19 Mar 15:04
Compare
Choose a tag to compare
0.5.0 Pre-release
Pre-release

Changed

  • Added FirstResponderStateChangeHandler.receive(on:) to allow change handlers
    to be called on a specfic scheduler to avoid nested view updates.
  • Added an animation: parameter to the FirstResponderStateChangeHandler.animation()
    modifier so you can provide a custom animation, or disable animations explicitly.

0.4.1

16 Mar 16:47
Compare
Choose a tag to compare
0.4.1 Pre-release
Pre-release

Fixed

  • Text field text would not update to reflect external state changes.

0.4.0

16 Mar 10:51
Compare
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.