BackgroundBlur is not applied to the scrolled NavigationBar #83
-
There is a problem that the // ...snip
.bottomSheet(
bottomSheetPosition: $presenter.alreadySignUp.sheetPosition,
options: [
.noDragIndicator,
.noBottomPosition,
.allowContentDrag,
.absolutePositionValue,
.showCloseButton(),
.backgroundBlur(effect: .dark),
.background { AnyView(Color.white) }
]
) {
MyView()
// ...snip
}
.navigationTitle("Hello")
.navigationBarBackButtonHidden(true)
.navigationBarTitleDisplayMode(.inline) |
Beta Was this translation helpful? Give feedback.
Answered by
lucaszischka
Jul 28, 2022
Replies: 1 comment 1 reply
-
You need to apply the BottomSheet to NavigationView itself. Otherwise the NavigationView is a layer above an cannot be overlayed: NavigationView {
// Some View
.navigationTitle("Hello")
.navigationBarBackButtonHidden(true)
.navigationBarTitleDisplayMode(.inline)
}
.bottomSheet(
bottomSheetPosition: $presenter.alreadySignUp.sheetPosition,
options: [
.noDragIndicator,
.noBottomPosition,
.allowContentDrag,
.absolutePositionValue,
.showCloseButton(),
.backgroundBlur(effect: .dark),
.background { AnyView(Color.white) }
]
) {
MyView()
// ...snip
} See #71 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
jsryudev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need to apply the BottomSheet to NavigationView itself. Otherwise the NavigationView is a layer above an cannot be overlayed:
See #71