adamfootdev / BottomSheet

Access UISheetPresentationController in SwiftUI on iOS 15 using a simple .bottomSheet modifier.
MIT License
345 stars 40 forks source link

blurred or transparent background instead of opaque white #16

Open nylki opened 2 years ago

nylki commented 2 years ago

I am not too familiar with UIKits UISheetPresentationController, but it would be quite useful to be able to define a material/blur and an opacity to the sheets background.

Is that in the scope of this package? If not, where would be the point to add the feature in a custom branch, would it be around here?: https://github.com/adamfootdev/BottomSheet/blob/main/Sources/BottomSheet/View%20Controllers/BottomSheetViewController.swift#L63

I imagine it could be done by inserting a UIVisualEffectView with UIBlurEffect just before the contentView is added there.

LinusGeffarth commented 2 years ago

I second this request; would be very pretty!