UIShape
An abstract representation of a shape.
Declaration
struct UIShapeOverview
A UIShape can represent different types of shapes, including:
A simple shape like a rectangle or circle that resolves into a concrete shape according to context (like size and position)
A Bézier path
A dynamic shape that resolves using a custom closure
You typically use a UIShape with APIs like UIHoverStyle to represent the shape of an effect.
Topics
Creating a hover shape
rectcapsulecirclerect(cornerRadius:cornerCurve:maskedCorners:)fixedRect(_:cornerRadius:cornerCurve:maskedCorners:)UICornerCurve