Contents

RoundedRectangularShape

A protocol of Insettableshape that describes a rounded rectangular shape.

Declaration

protocol RoundedRectangularShape : InsettableShape

Overview

Conform your InsettableShape type to RoundedRectangularShape when your shape is a rounded rectangular with four corners and you want to expose information about the corners. For example, a custom triangle Shape is not fit for such conformance, while a custom rectangle Shape could benefit from providing the implementation, especially when the shape is used as a container shape in containerShape(_:) to achieve concentricity.

System shapes like Rectangle, RoundedRectangle, UnevenRoundedRectangle, Capsule, and Circle already provide default implementation for this protocol.

Topics

Instance Methods

Type Aliases

See Also

Creating rectangular shapes