mirror of
https://github.com/yattee/yattee.git
synced 2026-02-19 17:29:45 +00:00
Add DEV badge on iCloud settings for debug builds
Shows an orange "DEV" capsule next to the iCloud row in Settings and a development environment notice at the top of iCloud settings, helping distinguish CloudKit dev environment from production during development.
This commit is contained in:
@@ -50,6 +50,16 @@ struct iCloudSettingsView: View {
|
||||
|
||||
var body: some View {
|
||||
List {
|
||||
#if DEBUG
|
||||
Section {
|
||||
Label(String(localized: "settings.icloud.dev.title"), systemImage: "hammer.fill")
|
||||
.foregroundStyle(.orange)
|
||||
.font(.subheadline)
|
||||
} footer: {
|
||||
Text(String(localized: "settings.icloud.dev.footer"))
|
||||
}
|
||||
#endif
|
||||
|
||||
Section {
|
||||
Toggle(isOn: Binding(
|
||||
get: { settingsManager?.iCloudSyncEnabled ?? false },
|
||||
|
||||
Reference in New Issue
Block a user