fix(apple/tvOS): opaque material backdrop behind the full-screen covers
ci / rust (push) Has been cancelled
ci / rust (push) Has been cancelled
tvOS forms/lists have CLEAR backgrounds and a fullScreenCover only shows what the presented view paints, so Settings/Add Host/pairing rendered transparently over the hosts grid. All three covers now sit on .thickMaterial edge to edge — the standard tvOS blur-over-content panel look (verified in the Apple TV simulator). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -64,6 +64,7 @@ struct ContentView: View {
|
||||
pinned.pinnedSHA256 = fingerprint
|
||||
connect(pinned)
|
||||
}
|
||||
.background(.thickMaterial, ignoresSafeAreaEdges: .all)
|
||||
}
|
||||
#else
|
||||
.sheet(item: $pairingTarget) { host in
|
||||
@@ -165,11 +166,15 @@ struct ContentView: View {
|
||||
.frame(minWidth: 480, minHeight: 360)
|
||||
#endif
|
||||
#if os(tvOS)
|
||||
// tvOS forms/lists have CLEAR backgrounds and a cover only shows what the
|
||||
// presented view paints — back them with the standard tv blur-over-content.
|
||||
.fullScreenCover(isPresented: $showAddHost) {
|
||||
AddHostSheet { store.add($0) }
|
||||
.background(.thickMaterial, ignoresSafeAreaEdges: .all)
|
||||
}
|
||||
.fullScreenCover(isPresented: $showSettings) {
|
||||
SettingsView()
|
||||
.background(.thickMaterial, ignoresSafeAreaEdges: .all)
|
||||
}
|
||||
#else
|
||||
.sheet(isPresented: $showAddHost) {
|
||||
|
||||
Reference in New Issue
Block a user