Structure

RoundedRectangle

A rectangular shape with rounded corners, aligned inside the frame of the view containing it.

Declaration

@frozen struct RoundedRectangle

Topics

Instance Methods

func offset(CGSize) -> OffsetShape<RoundedRectangle>

Changes the relative position of this shape using the specified size.

func offset(CGPoint) -> OffsetShape<RoundedRectangle>

Changes the relative position of this shape using the specified point.

func offset(x: CGFloat, y: CGFloat) -> OffsetShape<RoundedRectangle>

Changes the relative position of this shape using the specified coordinates.

func rotation(Angle, anchor: UnitPoint) -> RotatedShape<RoundedRectangle>

Rotates this shape around an anchor point at the angle you specify.

func scale(CGFloat, anchor: UnitPoint) -> ScaledShape<RoundedRectangle>

Scales this shape without changing its bounding frame.

Applying Standard Modifiers

View Modifiers

Configure this view and the views it contains by applying standard modifiers.

Relationships

Conforms To

See Also

Shapes

struct Rectangle

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

enum Edge

An enumeration to indicate one edge of a rectangle.

struct Circle

A circle centered on the frame of the view containing it.

struct Ellipse

An ellipse aligned inside the frame of the view containing it.

struct Capsule

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

struct Path

The outline of a 2D shape.