babylonhealth / DrawerKit

DrawerKit lets an UIViewController modally present another UIViewController in a manner similar to the way Apple's Maps app works.
https://github.com/Babylonpartners
MIT License
781 stars 44 forks source link

Drawer corners are not shown on initial presentation. #87

Closed mluisbrown closed 5 years ago

mluisbrown commented 5 years ago

On initial presentation, the drawer corners are not displayed. They only appear (and then remain) after moving the drawer:

drawercorners

I'm using the following DrawerConfiguration:

DrawerConfiguration(
        fullExpansionBehaviour: .leavesCustomGap(gap: 300),
        cornerAnimationOption: .none,
        handleViewConfiguration: HandleViewConfiguration(autoAnimatesDimming: false)
 )

And my DrawerPresentable implementation has just the following:

var heightOfPartiallyExpandedDrawer = CGFloat(200)
mluisbrown commented 5 years ago

Turns out that in this case the view controller's view cornerRadius was being set elsewhere 🤦‍♂️

kevinlee-app commented 3 years ago

Hi @mluisbrown , I am also facing this issue. How do you solve this? On your case, where is the cornerRadius set?