From 36d72d96a69d55e21c3bbd9e5869cc077ccfee1f Mon Sep 17 00:00:00 2001 From: ski-u <37182704+ski-u@users.noreply.github.com> Date: Thu, 5 Dec 2024 13:47:36 +0000 Subject: [PATCH] run swift-format --- .../AppFeature/Views/UserColorScheme.swift | 1 - .../Settings/Appearance/AppearanceView.swift | 18 +++++++++--------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/Features/Sources/AppFeature/Views/UserColorScheme.swift b/Features/Sources/AppFeature/Views/UserColorScheme.swift index f54b89a..3ea7f75 100644 --- a/Features/Sources/AppFeature/Views/UserColorScheme.swift +++ b/Features/Sources/AppFeature/Views/UserColorScheme.swift @@ -13,4 +13,3 @@ extension UserColorScheme { } } } - diff --git a/Features/Sources/Settings/Appearance/AppearanceView.swift b/Features/Sources/Settings/Appearance/AppearanceView.swift index 86bce6f..0113b14 100644 --- a/Features/Sources/Settings/Appearance/AppearanceView.swift +++ b/Features/Sources/Settings/Appearance/AppearanceView.swift @@ -4,7 +4,7 @@ import SwiftUI struct AppearanceView: View { @Shared(.appStorage("colorScheme")) var userColorScheme = UserColorScheme.system - + var body: some View { Form { Button( @@ -17,15 +17,15 @@ struct AppearanceView: View { HStack { Text("Light") .foregroundStyle(Color.primary) - + Spacer() - + if userColorScheme == .light { Image(systemName: "checkmark") } } } - + Button( action: { $userColorScheme.withLock { @@ -36,15 +36,15 @@ struct AppearanceView: View { HStack { Text("Dark") .foregroundStyle(Color.primary) - + Spacer() - + if userColorScheme == .dark { Image(systemName: "checkmark") } } } - + Button( action: { $userColorScheme.withLock { @@ -55,9 +55,9 @@ struct AppearanceView: View { HStack { Text("System") .foregroundStyle(Color.primary) - + Spacer() - + if userColorScheme == .system { Image(systemName: "checkmark") }