Add more flexible background support to FullscreenDialog (#2675)

Hide the background when the main content extends underneath the bottom content.
This commit is contained in:
Doug
2024-04-10 14:56:41 +01:00
committed by GitHub
parent bcd7e2254c
commit da598302df
61 changed files with 230 additions and 104 deletions
@@ -26,7 +26,7 @@ struct ServerConfirmationScreen: View {
buttons
}
.background()
.environment(\.backgroundStyle, AnyShapeStyle(Color.compound.bgCanvasDefault))
.backgroundStyle(.compound.bgCanvasDefault)
.introspect(.window, on: .supportedVersions) { window in
context.send(viewAction: .updateWindow(window))
}