Inset

public struct Inset : RectBasedConstraint
    ...

Returns constraint, that applies UIEdgeInsets to source rect.

  • Undocumented

    Declaration

    Swift

    public init(_ insets: EdgeInsets)
  • Main function for constrain source space by other rect

    Declaration

    Swift

    public func formConstrain(sourceRect: inout CGRect, by rect: CGRect)

    Parameters

    sourceRect

    Source space

    rect

    Rect for constrain