Stevia icon indicating copy to clipboard operation
Stevia copied to clipboard

Support for cornerRadius

Open brzzdev opened this issue 2 years ago • 0 comments

Being able to set cornerRadius(12) along with the rest of my Stevia layout code would really be nice.

It would need to set layer.masksToBounds = false automatically, similar to how Stevia currently sets translatesAutoresizingMaskIntoConstraints = false.

At the moment I have this added in Stevia fashion myself through

extension UIView {
	
	func cornerRadius(_ radius: CGFloat) {
		
		layer.masksToBounds = true
		layer.cornerRadius = radius
	}
}

but it'd be nice to have cornerRadius supported.

brzzdev avatar Jun 27 '22 11:06 brzzdev