Trailing

public struct Trailing : RectBasedConstraint, Extensible

Undocumented

  • Undocumented

    Declaration

    Swift

    public typealias Conformed = RectBasedConstraint
  • 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

  • Common method for create entity of this type with base behavior.

    Declaration

    Swift

    public static func build(_ base: RectBasedConstraint) -> Trailing

    Parameters

    base

    Entity implements required behavior

    Return Value

    Initialized entity

  • Returns alignment constraint by trailing

    Declaration

    Swift

    public static func align(by dependency: Align.Dependence) -> Trailing

    Parameters

    dependency

    Space dependency for target rect

    Return Value

    Alignment constraint typed by Trailing

  • Undocumented

    See more

    Declaration

    Swift

    public struct Align
  • Returns constraint, that limits source rect by trailing of passed rect. If source rect intersects trailing of passed rect, source rect will be cropped, else will not changed.

    Declaration

    Swift

    public static func limit(on dependency: Limit.Dependence) -> Trailing

    Parameters

    dependency

    Space dependency for target rect

    Return Value

    Limit constraint typed by Trailing

  • Undocumented

    See more

    Declaration

    Swift

    public struct Limit
  • Returns constraint, that pulls source rect to trailing of passed rect. If source rect intersects trailing of passed rect, source rect will be cropped, else will pulled with changing size.

    Declaration

    Swift

    public static func pull(from dependency: Pull.Dependence) -> Trailing

    Parameters

    dependency

    Space dependency for target rect

    Return Value

    Pull constraint typed by Trailing

  • Undocumented

    See more

    Declaration

    Swift

    public struct Pull