From b45b99ffd71a46e47f35eccabe2d5998d5103b6e Mon Sep 17 00:00:00 2001 From: Ras Date: Mon, 22 Jan 2024 16:55:06 +0900 Subject: [PATCH] Update PropertyWrapper documentation --- Sources/Atoms/PropertyWrapper/Watch.swift | 2 +- Sources/Atoms/PropertyWrapper/WatchState.swift | 2 +- Sources/Atoms/PropertyWrapper/WatchStateObject.swift | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/Atoms/PropertyWrapper/Watch.swift b/Sources/Atoms/PropertyWrapper/Watch.swift index 78d532a3..17b5884c 100644 --- a/Sources/Atoms/PropertyWrapper/Watch.swift +++ b/Sources/Atoms/PropertyWrapper/Watch.swift @@ -39,7 +39,7 @@ public struct Watch: DynamicProperty { /// This property provides primary access to the value's data. However, you don't /// access ``wrappedValue`` directly. Instead, you use the property variable created /// with the `@Watch` attribute. - /// Accessing to this property starts watching the atom. + /// Accessing this property starts watching the atom. public var wrappedValue: Node.Loader.Value { context.watch(atom) } diff --git a/Sources/Atoms/PropertyWrapper/WatchState.swift b/Sources/Atoms/PropertyWrapper/WatchState.swift index 32d85e7e..31e6b02e 100644 --- a/Sources/Atoms/PropertyWrapper/WatchState.swift +++ b/Sources/Atoms/PropertyWrapper/WatchState.swift @@ -59,7 +59,7 @@ public struct WatchState: DynamicProperty { /// /// Use the projected value to pass a binding value down a view hierarchy. /// To get the ``projectedValue``, prefix the property variable with `$`. - /// Accessing to this property itself doesn't starts watching the atom, but does when + /// Accessing this property itself does not start watching the atom, but does when /// the view accesses to the getter of the binding. public var projectedValue: Binding { context.state(atom) diff --git a/Sources/Atoms/PropertyWrapper/WatchStateObject.swift b/Sources/Atoms/PropertyWrapper/WatchStateObject.swift index 962b355d..ac80294d 100644 --- a/Sources/Atoms/PropertyWrapper/WatchStateObject.swift +++ b/Sources/Atoms/PropertyWrapper/WatchStateObject.swift @@ -82,7 +82,7 @@ public struct WatchStateObject: DynamicProperty { /// This property provides primary access to the value's data. However, you don't /// access ``wrappedValue`` directly. Instead, you use the property variable created /// with the `@WatchStateObject` attribute. - /// Accessing to this property starts watching the atom. + /// Accessing this property starts watching the atom. public var wrappedValue: Node.Loader.Value { context.watch(atom) }