Contents

Capsule

A capsule shape aligned inside the frame of the view containing it.

Declaration

@frozen struct Capsule

Mentioned in

Overview

A capsule shape is equivalent to a rounded rectangle where the corner radius is chosen as half the length of the rectangle’s smallest edge.

Topics

Creating a capsule

Getting the shape’s characteristics

See Also

Creating circular shapes