Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for cornerRadius #167

Open
brzzdev opened this issue Jun 27, 2022 · 0 comments
Open

Support for cornerRadius #167

brzzdev opened this issue Jun 27, 2022 · 0 comments

Comments

@brzzdev
Copy link

brzzdev commented Jun 27, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant