You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whether the ``SettingStack`` should automatically embed in a ``NavigationStack`` / ``NavigationView``, or assume the view exists higher up
30
+
in the hierarchy.
31
+
*/
32
+
privateletembedInNavigationStack:Bool
33
+
28
34
/**
29
35
Create a new Settings view from a `SettingPage`. The default "no results" view will be used.
36
+
- parameters:
37
+
- embedInNavigationStack: Whether to embed the Settings views in a ``NavigationStack`` / ``NavigationView`` or not. If this is `false`, you will be responsible for providing the ``NavigationStack`` / ``NavigationView``.
38
+
- page:A closure to provide a ``SettingPage`` to the ``SettingStack``.
Create a new Settings view from a `SettingPage`, with a custom `SettingViewModel` and custom "no results" view.
50
+
- parameters:
51
+
- settingViewModel: A custom view model to use for the ``SettingStack``.
52
+
- embedInNavigationStack: Whether to embed the Settings views in a ``NavigationStack`` / ``NavigationView`` or not. If this is `false`, you will be responsible for providing the ``NavigationStack`` / ``NavigationView``.
53
+
- page:A closure to provide a ``SettingPage`` to the ``SettingStack``.
54
+
- customNoResultsView: A view builder to provide the view to use when there's no results.
0 commit comments