ShadowedView corner radius not working iOS swift

 Solution:

MaterialComponents/ShadowElevations to set corner radius in swift


    func setCorner() {

        self.cornerRadius = 10

        self.layer.masksToBounds = true

        self.clipsToBounds = false

    }


Then call the function as like below.


        shadowView.setCornerSmall()

Comments

Popular posts from this blog

store cgpoint in userdefaults iOS swift

libc++abi: terminating due to uncaught exception of type NSException iOS swift