Skip to content

Commit 6f3749b

Browse files
authored
Update ViewStore.swift (#116)
1 parent 0d2b624 commit 6f3749b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Sources/ComposableArchitecture/SwiftUI/ViewStore.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import Combine
22
import SwiftUI
33

4-
/// A `ViewStore` is an object that can observe state changes and send actions from a SwiftUI view.
4+
/// A `ViewStore` is an object that can observe state changes and send actions. They are most
5+
/// commonly used in views, such as SwiftUI views, UIView or UIViewController, but they can be
6+
/// used anywhere it makes sense to observe state and send actions.
57
///
68
/// In SwiftUI applications, a `ViewStore` is accessed most commonly using the `WithViewStore` view.
79
/// It can be initialized with a store and a closure that is handed a view store and must return a

0 commit comments

Comments
 (0)