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 9c59039789
commit c03db40859
61 changed files with 230 additions and 104 deletions

View File

@@ -55,7 +55,7 @@ struct AppLockScreen: View {
.font(.compound.bodyMDSemibold)
}
.background()
.environment(\.backgroundStyle, AnyShapeStyle(Color.compound.bgCanvasDefault))
.backgroundStyle(.compound.bgCanvasDefault)
.disabled(context.viewState.forcedLogoutIndicator != nil)
.overlay {
context.viewState.forcedLogoutIndicator.map(UserIndicatorModalView.init)