Skip to content

Commit 5e21d1b

Browse files
committed
Refactoring
1 parent 4e0eda1 commit 5e21d1b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Sources/Atoms/AtomScope.swift

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff 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
/// ```

0 commit comments

Comments
 (0)