ShadowedView corner radius not working iOS swift
Solution:
MaterialComponents/
func setCorner() {
self.cornerRadius = 10
self.layer.masksToBounds = true
self.clipsToBounds = false
}
Then call the function as like below.
shadowView.setCornerSmall()
Solution:
MaterialComponents/
func setCorner() {
self.cornerRadius = 10
self.layer.masksToBounds = true
self.clipsToBounds = false
}
Then call the function as like below.
shadowView.setCornerSmall()
Comments
Post a Comment