From 54b83cdaf5df1221f1016828e48baa6e12b5dbef Mon Sep 17 00:00:00 2001 From: Luke Redpath Date: Tue, 16 Mar 2021 10:50:51 +0000 Subject: [PATCH] Update changes --- CHANGELOG.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 55b7176..6f385ae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,25 @@ # Changelog +## 0.4.0 + +### 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 ### Added