Skip to content

Changing the opacity of the bottomSheet #138

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

You must be logged in to vote

This is basic SwiftUI (as customBackground is .background but renamed), so not related to this library. However I hope this puts you in the right direction:

.bottomSheet(...)
.customBackground(.ultraThinMaterial, in: in: RoundedRectangle(cornerRadius: 10)) // iOS 15+

If you're below iOS 15, Material is not available, so you would need to make it yourself ;).

.bottomSheet(...)
.customBackground {
    YourMaterial()
        .cornerRadius(10)
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lucaszischka
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