From efaedb7f8cbf81ac251d92aaff8ffddcb5001e03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Junnos=20=EF=A3=BF?= Date: Wed, 9 Oct 2024 21:58:11 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fixed=20`WritableKeyPath`=20to?= =?UTF-8?q?=20reference=20one?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sources/Dripper/Station.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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]