Skip to content

Commit

Permalink
Merge pull request #9 from jeanbaptistebeau/master
Browse files Browse the repository at this point in the history
Made ResponderModifier available from any View
  • Loading branch information
ricocrescenzio95 authored Oct 3, 2022
2 parents ea2c26c + a01a720 commit 1d9aa03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftUITextField/Responder/ResponderModifier.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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.
///
Expand Down

0 comments on commit 1d9aa03

Please sign in to comment.