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

Invalid bundle error while upload the app to the app Store