Surface sync failures in Settings via lastSyncError

Claude-Session: https://claude.ai/code/session_01SY5jsAUf4qoPxSvv8xAqXS
This commit is contained in:
2026-07-04 12:15:13 -04:00
parent 61ab9359ee
commit 0c489fbbc7
3 changed files with 63 additions and 8 deletions
@@ -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(