diff --git a/Sources/SwiftUITextField/Responder/ResponderChainCoordinator.swift b/Sources/SwiftUITextField/Responder/ResponderChainCoordinator.swift index 413db5c..563e41a 100644 --- a/Sources/SwiftUITextField/Responder/ResponderChainCoordinator.swift +++ b/Sources/SwiftUITextField/Responder/ResponderChainCoordinator.swift @@ -93,7 +93,7 @@ public class ResponderChainCoordinator: NSObject { }) } else if let responderStorage = context.environment.responderStorage as? AnyHashableResponderStorage { cancellable = responderStorage.$value - .compactMap { $0 as? Hashable } + .compactMap { $0 as? (any Hashable) } .sink(receiveValue: { selectedValue in applyResponder(value.hashValue == selectedValue.hashValue) }) diff --git a/Sources/SwiftUITextField/Responder/ResponderModifier.swift b/Sources/SwiftUITextField/Responder/ResponderModifier.swift index 80f7d02..b869aea 100644 --- a/Sources/SwiftUITextField/Responder/ResponderModifier.swift +++ b/Sources/SwiftUITextField/Responder/ResponderModifier.swift @@ -7,7 +7,7 @@ import SwiftUI -public extension SUITextField { +public extension View { /// Modifies this view by binding its responder state to the given state value. ///