File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -35,17 +35,16 @@ import SwiftUI
3535/// }
3636/// ```
3737///
38- /// Additionally, if for some reason your app cannot use ``AtomRoot`` to manage the store
39- /// that manages the state of atoms, you can manage the store on your own and pass the instance
40- /// to ``AtomScope`` so that you can use the atoms in descendant views .
38+ /// Additionally, if for some reason your app cannot use ``AtomRoot`` to manage the store,
39+ /// you can instead manage the store on your own and pass the instance to ``AtomScope``
40+ /// to allow descendant views to use atoms.
4141///
4242/// ```swift
4343/// let store = AtomStore()
4444/// let rootView = AtomScope(store) {
4545/// RootView()
4646/// }
4747/// let window = UIWindow(frame: UIScreen.main.bounds)
48-
4948/// window.rootViewController = UIHostingController(rootView: rootView)
5049/// window.makeKeyAndVisible()
5150/// ```
@@ -60,8 +59,7 @@ public struct AtomScope<Content: View>: View {
6059
6160 /// Creates a new scope with the specified content.
6261 ///
63- /// - Parameters:
64- /// - content: The view content that inheriting from the parent.
62+ /// - Parameter content: The view content that inheriting from the parent.
6563 public init ( @ViewBuilder content: ( ) -> Content ) {
6664 self . store = nil
6765 self . content = content ( )
You can’t perform that action at this time.
0 commit comments