Fix transparent background of iCloud sync overlay on tvOS

tvOS full screen covers have a transparent background, so the
onboarding view below leaked through the sync progress overlay.
Add a black background, matching the legacy accounts import cover.
This commit is contained in:
Arkadiusz Fal
2026-07-23 18:03:21 +02:00
parent 8f29b15fee
commit c3e39c955d

View File

@@ -182,6 +182,11 @@ struct YatteeApp: App {
.fullScreenCover(isPresented: $showingICloudProgress) { .fullScreenCover(isPresented: $showingICloudProgress) {
ICloudSyncProgressView() ICloudSyncProgressView()
.appEnvironment(appEnvironment) .appEnvironment(appEnvironment)
#if os(tvOS)
// tvOS full screen covers have a transparent background,
// letting the view below leak through.
.background(Color.black.ignoresSafeArea())
#endif
} }
#endif #endif
#if os(tvOS) #if os(tvOS)