danielsaidi / BottomSheet

BottomSheet lets you add custom bottom sheets to your SwiftUI apps.
MIT License
190 stars 12 forks source link

Transparent Background on handle? #7

Closed jakeround closed 2 years ago

jakeround commented 2 years ago

Hey 👋🏻

Just a simple styling issue, i'm looking to make backgroundColor dividerColor both transparent so behind the sheet but I want to keep the handle visible. At full opacity it looks like the properties do work but when set to 0 it looks like there's a base colour behind the sheet any ideas?

Screenshot 2021-12-29 at 01 08 45

danielsaidi commented 2 years ago

Hi Jake!

Interesting - let me take a look!

jakeround commented 2 years ago

Sweet thank you! Much appreciated

Project i'm using BottomSheet in 😄 Sonix

danielsaidi commented 2 years ago

Hi again,

The Sonic app looks amazing!

Regarding the background color, I tried turning down the opacity of the demo colors and then the entire sheet becomes semi-transparent:

Skärmavbild 2022-01-05 kl  23 04 09

So no, there are no additional background colors in the sheet, which corresponds with what the code says.

Perhaps you have a background color in the sheet content view that you provide?