Changing the opacity of the bottomSheet #138
-
Hi, I was wondering if I can make the bottomsheet more transparent+blurred than the default. Similar to how .ultraThinMaterial would work in newer iOS versions :) I am not really sure how I would do that using a custom background. |
Beta Was this translation helpful? Give feedback.
Answered by
lucaszischka
Aug 29, 2023
Replies: 1 comment
-
This is basic SwiftUI (as .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)
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
lucaszischka
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:If you're below iOS 15, Material is not available, so you would need to make it yourself ;).