Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run swift-format #21

Merged
merged 1 commit into from
Dec 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Features/Sources/AppFeature/Views/UserColorScheme.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,3 @@ extension UserColorScheme {
}
}
}

18 changes: 9 additions & 9 deletions Features/Sources/Settings/Appearance/AppearanceView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import SwiftUI

struct AppearanceView: View {
@Shared(.appStorage("colorScheme")) var userColorScheme = UserColorScheme.system

var body: some View {
Form {
Button(
Expand All @@ -17,15 +17,15 @@ struct AppearanceView: View {
HStack {
Text("Light")
.foregroundStyle(Color.primary)

Spacer()

if userColorScheme == .light {
Image(systemName: "checkmark")
}
}
}

Button(
action: {
$userColorScheme.withLock {
Expand All @@ -36,15 +36,15 @@ struct AppearanceView: View {
HStack {
Text("Dark")
.foregroundStyle(Color.primary)

Spacer()

if userColorScheme == .dark {
Image(systemName: "checkmark")
}
}
}

Button(
action: {
$userColorScheme.withLock {
Expand All @@ -55,9 +55,9 @@ struct AppearanceView: View {
HStack {
Text("System")
.foregroundStyle(Color.primary)

Spacer()

if userColorScheme == .system {
Image(systemName: "checkmark")
}
Expand Down