Skip to content

Commit 73783df

Browse files
committed
Refactoring
1 parent 4e0eda1 commit 73783df

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

Sources/Atoms/AtomScope.swift

Lines changed: 4 additions & 6 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
/// ```
@@ -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()

0 commit comments

Comments
 (0)