Angular radius for a specific angle

I want to set the corner radius for each corner separately, but in the presentation layer I did not find a property or method for it, only for each corner. How can i do this?

+6
source share
1 answer

Take a look at this, I think it can be resized to achieve what you want as it rounds borders using CGPath: UIView with rounded corners

You could also do this by supporting your UIView with CAShapeLayer and setting the shape on this layer to a path created according to your angle specifications.

+2
source

Source: https://habr.com/ru/post/889200/


All Articles