Remove an unnecessary VStack
- ID
a699459- date
2023-06-18 10:45:15+00:00- author
Alex Chan <alex@alexwlchan.net>- parent
5fbb506- message
Remove an unnecessary VStack- changed files
1 file, 10 additions, 6 deletions
Changed files
Blink/Views/SettingsView.swift (512) → Blink/Views/SettingsView.swift (582)
diff --git a/Blink/Views/SettingsView.swift b/Blink/Views/SettingsView.swift
index b7b26af..ddb760d 100644
--- a/Blink/Views/SettingsView.swift
+++ b/Blink/Views/SettingsView.swift
@@ -11,14 +11,18 @@ struct SettingsView: View {
@AppStorage("colorScheme") private var colorScheme: String = "dark"
var body: some View {
- VStack {
- Picker("Appearance", selection: $colorScheme) {
- Text("Dark").tag("dark")
- Text("Light").tag("light")
- Text("Match system").tag("match_system")
- }
+ Picker("Appearance", selection: $colorScheme) {
+ Text("Dark").tag("dark")
+ Text("Light").tag("light")
+ Text("Match system").tag("match_system")
}
.padding()
}
}
+
+struct SettingsView_Previews: PreviewProvider {
+ static var previews: some View {
+ SettingsView()
+ }
+}