diff --git a/Sources/Dripper/Station.swift b/Sources/Dripper/Station.swift index ae6c118..3be5ae7 100644 --- a/Sources/Dripper/Station.swift +++ b/Sources/Dripper/Station.swift @@ -68,7 +68,7 @@ public final class Station { } public subscript( - dynamicMember dynamicMember: WritableKeyPath + dynamicMember dynamicMember: ReferenceWritableKeyPath ) -> Member { get { state[keyPath: dynamicMember] @@ -80,7 +80,9 @@ public final class Station { } extension Station where State: AnyObject { - public func bind(_ dynamicMember: WritableKeyPath) -> Binding { + public func bind( + _ dynamicMember: ReferenceWritableKeyPath + ) -> Binding { Binding( get: { self.state[keyPath: dynamicMember]