Surface sync failures in Settings via lastSyncError
Claude-Session: https://claude.ai/code/session_01SY5jsAUf4qoPxSvv8xAqXS
This commit is contained in:
@@ -105,6 +105,27 @@ struct SettingsView: View {
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - iCloud Sync Section
|
||||
Section {
|
||||
switch sync.iCloudStatus {
|
||||
case .checking:
|
||||
Label("Connecting…", systemImage: "arrow.triangle.2.circlepath.icloud")
|
||||
.foregroundStyle(.secondary)
|
||||
case .available:
|
||||
Label("Connected", systemImage: "checkmark.icloud")
|
||||
.foregroundStyle(.secondary)
|
||||
case .unavailable:
|
||||
Label("iCloud unavailable", systemImage: "xmark.icloud")
|
||||
.foregroundStyle(.orange)
|
||||
}
|
||||
if let error = sync.lastSyncError {
|
||||
Label(error, systemImage: "exclamationmark.icloud.fill")
|
||||
.foregroundStyle(.orange)
|
||||
}
|
||||
} header: {
|
||||
Text("iCloud Sync")
|
||||
}
|
||||
|
||||
// MARK: - About Section
|
||||
Section {
|
||||
IndieAbout(configuration: AppInfoConfiguration(
|
||||
|
||||
Reference in New Issue
Block a user