Skip to content

Commit 942aeec

Browse files
committed
Rename to Developer Tools
1 parent 0b0e05b commit 942aeec

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

Modules/Sources/WordPressUI/Views/Settings/ExperimentalFeatures/ExperimentalFeaturesList.swift

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ public struct ExperimentalFeaturesList: View {
55
@ObservedObject
66
var viewModel: ExperimentalFeaturesViewModel
77

8-
@AppStorage("superExperimentalFeaturesEnabled")
9-
private var superExperimentalFeaturesEnabled = false
8+
@AppStorage("isDeveloperModeEnabled")
9+
private var isDeveloperModeEnabled = false
1010

1111
@State private var tapCount = 0
1212

@@ -18,7 +18,7 @@ public struct ExperimentalFeaturesList: View {
1818
viewModel.items.filter { !$0.isSuperExperimental }
1919
}
2020

21-
private var superExperimentalFeatures: [Feature] {
21+
private var developerFeatures: [Feature] {
2222
viewModel.items.filter { $0.isSuperExperimental }
2323
}
2424

@@ -40,7 +40,7 @@ public struct ExperimentalFeaturesList: View {
4040
}
4141
}
4242

43-
if !superExperimentalFeaturesEnabled {
43+
if !isDeveloperModeEnabled {
4444
HStack {
4545
Spacer()
4646
boltButton
@@ -51,13 +51,13 @@ public struct ExperimentalFeaturesList: View {
5151
.padding(.top, 8)
5252
}
5353

54-
if superExperimentalFeaturesEnabled && !superExperimentalFeatures.isEmpty {
54+
if isDeveloperModeEnabled && !developerFeatures.isEmpty {
5555
Section {
56-
ForEach(superExperimentalFeatures) { item in
56+
ForEach(developerFeatures) { item in
5757
Toggle(item.name, isOn: viewModel.binding(for: item))
5858
}
5959
} header: {
60-
Text(Strings.superExperimentalSectionTitle)
60+
Text(Strings.developerToolsSectionTitle)
6161
}
6262
}
6363
}
@@ -86,7 +86,7 @@ public struct ExperimentalFeaturesList: View {
8686

8787
if tapCount >= 5 {
8888
withAnimation {
89-
superExperimentalFeaturesEnabled = true
89+
isDeveloperModeEnabled = true
9090
}
9191
}
9292
}
@@ -118,10 +118,10 @@ public struct ExperimentalFeaturesList: View {
118118
comment: "The title for the experimental features list"
119119
)
120120

121-
static let superExperimentalSectionTitle = NSLocalizedString(
122-
"experimentalFeaturesList.superExperimental.section.title",
123-
value: "Super Experimental Features",
124-
comment: "Section title for super experimental features"
121+
static let developerToolsSectionTitle = NSLocalizedString(
122+
"experimentalFeaturesList.developTools.section.title",
123+
value: "Developer Tools",
124+
comment: "Section title for developer tools"
125125
)
126126
}
127127
}

0 commit comments

Comments
 (0)