Contents

capsule(style:)

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

Declaration

static func capsule(style: RoundedCornerStyle) -> Self

Discussion

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.

See Also

Getting standard shapes