Skip to content

BackgroundBlur is not applied to the scrolled NavigationBar #83

Answered by lucaszischka
jsryudev asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jsryudev
Comment options

Answer selected by jsryudev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #82 on July 28, 2022 17:22.