Skip to content

Commit e351596

Browse files
authored
Made taggedResponders @ Published so .onChange(of: chain.availableResponders) works
1 parent 22229e9 commit e351596

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/ResponderChain/ResponderChain.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public class ResponderChain: ObservableObject {
119119
private var cancellables = Set<AnyCancellable>()
120120
private var window: PlatformWindow
121121
private var shouldUpdateUI: Bool = true
122-
internal var taggedResponders: [AnyHashable: PlatformView] = [:]
122+
@Published internal var taggedResponders: [AnyHashable: PlatformView] = [:]
123123

124124
public init(forWindow window: PlatformWindow) {
125125
self.window = window

0 commit comments

Comments
 (0)