KWDrawerController icon indicating copy to clipboard operation
KWDrawerController copied to clipboard

Q: Is possible add cornerRadius to main view controller?

Open Lailan opened this issue 6 years ago • 2 comments

Good morning! First, thanks for this awesome lib!

Someone can help me? Is possible add cornerRadius to main view controller when I click or swipe?

Thanks

Lailan avatar Feb 25 '19 21:02 Lailan

any solution about this is issue ?

MNidhalM avatar May 21 '20 10:05 MNidhalM

I try two ways: The first is to modify the transition a DrawerTransition like DrawerFloatTransition for example and on the method endTransition, you can apply the corner radius on the content:

open override func endTransition(content: DrawerContent, side: DrawerSide) {
        super.endTransition(content: content, side: side)
        
        content.contentView.layer.cornerRadius = 33
}

The second way, without change the code, is to add a view with a container. On the view, you apply the corner radius.

It's the first time i use this library and i need to make it with a shadow: IMG_0113 IMG_0114

jndefosse avatar Jul 03 '20 14:07 jndefosse