We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6792dbb commit 99bb06fCopy full SHA for 99bb06f
1 file changed
Sources/Views/SettingView.swift
@@ -8,14 +8,20 @@
8
9
import SwiftUI
10
11
-struct SettingView: View {
12
- var setting: Setting
13
- var isInitialPage = false
14
- var isPagePreview = true
+public struct SettingView: View {
+ public var setting: Setting
+ public var isInitialPage = false
+ public var isPagePreview = true
15
16
@State var isActive = false
17
18
- var body: some View {
+ public init(setting: Setting, isInitialPage: Bool = false, isPagePreview: Bool = true) {
19
+ self.setting = setting
20
+ self.isInitialPage = isInitialPage
21
+ self.isPagePreview = isPagePreview
22
+ }
23
+
24
+ public var body: some View {
25
switch setting {
26
case let text as SettingText:
27
text
0 commit comments