Skip to content

Commit

Permalink
Update PropertyWrapper documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
rasberik committed Jan 22, 2024
1 parent bff907f commit b45b99f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Sources/Atoms/PropertyWrapper/Watch.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public struct Watch<Node: Atom>: 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)
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/Atoms/PropertyWrapper/WatchState.swift
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public struct WatchState<Node: StateAtom>: 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<Node.Loader.Value> {
context.state(atom)
Expand Down
2 changes: 1 addition & 1 deletion Sources/Atoms/PropertyWrapper/WatchStateObject.swift
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public struct WatchStateObject<Node: ObservableObjectAtom>: 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)
}
Expand Down

0 comments on commit b45b99f

Please sign in to comment.