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

Invalid bundle error while upload the app to the app Store

Saved Image in document directory and save path in coredata not able to fetch the image file iOS swift