effectiveRadius(corner:)
Returns the effective radius for the corner you provide, calculated using the view’s current corner configuration.
Declaration
func effectiveRadius(corner: UIRectCorner) -> CGFloatParameters
- corner:
The corner whose effective radius you want to calculate.
Return Value
A CGFloat value for the effective radius, expressed in points.
Overview
When you call this method from layoutSubviews(), updateProperties(), or updateProperties(), automatic invalidation occurs if the effective radius changes. If you provide more than one corner (for example, allCorners), the returned radius represents the maximum effective radius of those corners.