SwiftUIGeometryUtils Documentation

Extensions on CGRect

Properties

top​Leading

public var topLeading: CGPoint  

top​Trailing

public var topTrailing: CGPoint  

bottom​Trailing

public var bottomTrailing: CGPoint  

bottom​Leading

public var bottomLeading: CGPoint  

center

public var center: CGPoint  

minimum​Dimension​Span

public var minimumDimensionSpan: CGFloat  

The number of points spanned by the smallest dimension of the rectangle.

2-D Rectangles have two dimensions: a "width" and a "length"

maximum​Dimension​Span

public var maximumDimensionSpan: CGFloat  

The number of points spanned by the largest dimension of the rectangle.

2-D Rectangles have two dimensions: a "width" and a "length"