What's Changed
- Fixed: SwiftUI can write to bindings at inopportune times, like if a text field in a sheet is focussed, it will write to the binding after the sheet has been dismissed. When using
IfLetStore
, this can lead to noisy runtime warnings emitted by TCA, where optional state driving the sheet is nownil
, and thus the binding cannot write to state at this time. As a workaround,IfLetStore
will now ignore actions sent through bindings when state isnil
(#1879). - Fixed: A bug in Swift 5.7 and earlier can cause the runtime metadata mechanism used by swift-case-paths to crash in release mode when an
Any
existential exists in the type data. BecauseBindingAction
holds onto anAny
under the hood, it could be responsible for the occasional crash in release mode when present in certain type layouts. We've worked around this bug to prevent crashes in release mode (#1881). - Infrastructure: Fix docs link (thanks @Jager-yoo, #1874); add note to reducer protocol dependency docs (#1873); updated CoC to the latest Contributor Covenant.
Full Changelog: 0.50.0...0.50.1