RKConstraintCenter

public struct RKConstraintCenter

Undocumented

  • Create ‘equal’ constraint between centerXAnchor of current view and centerXAnchor of superview

    Declaration

    Swift

    public static func centerX(_ offset: CGFloat = 0, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintCenter

    Parameters

    offset

    Constraint constant. Default 0

    priority

    Constraint priority. Default .required

    isActive

    true, if constraint must be activated, otherwise false. Default true

    Return Value

    RKConstraintCenter

  • Create ‘equal’ constraint between centerXAnchor of current view and specific NSLayoutXAxisAnchor

    Declaration

    Swift

    public static func centerX(_ anchor: NSLayoutXAxisAnchor, offset: CGFloat = 0, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintCenter

    Parameters

    anchor

    Specific NSLayoutXAxisAnchor

    offset

    Constraint constant. Default 0

    priority

    Constraint priority. Default .required

    isActive

    true, if constraint must be activated, otherwise false. Default true

    Return Value

    RKConstraintCenter

  • Create ‘equal’ constraint between centerXAnchor of current view and centerXAnchor other view

    Declaration

    Swift

    public static func centerX(_ view: UIView, offset: CGFloat = 0, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintCenter

    Parameters

    view

    Other view

    offset

    Constraint constant. Default 0

    priority

    Constraint priority. Default .required

    isActive

    true, if constraint must be activated, otherwise false. Default true

    Return Value

    RKConstraintCenter

  • Create ‘greaterThanOrEqual’ constraint between centerXAnchor of current view and centerXAnchor of superview

    Declaration

    Swift

    public static func centerX(min offset: CGFloat, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintCenter

    Parameters

    offset

    Constraint constant

    priority

    Constraint priority. Default .required

    isActive

    true, if constraint must be activated, otherwise false. Default true

    Return Value

    RKConstraintCenter

  • Create ‘greaterThanOrEqual’ constraint between centerXAnchor of current view and specific NSLayoutXAxisAnchor

    Declaration

    Swift

    public static func centerX(min anchor: NSLayoutXAxisAnchor, offset: CGFloat = 0, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintCenter

    Parameters

    anchor

    Specific NSLayoutXAxisAnchor

    offset

    Constraint constant. Default 0

    priority

    Constraint priority. Default .required

    isActive

    true, if constraint must be activated, otherwise false. Default true

    Return Value

    RKConstraintCenter

  • Create ‘greaterThanOrEqual’ constraint between centerXAnchor of current view and centerXAnchor other view

    Declaration

    Swift

    public static func centerX(min view: UIView, offset: CGFloat = 0, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintCenter

    Parameters

    view

    Other view

    offset

    Constraint constant. Default 0

    priority

    Constraint priority. Default .required

    isActive

    true, if constraint must be activated, otherwise false. Default true

    Return Value

    RKConstraintCenter

  • Create ‘lessThanOrEqual’ constraint between centerXAnchor of current view and centerXAnchor of superview

    Declaration

    Swift

    public static func centerX(max offset: CGFloat, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintCenter

    Parameters

    offset

    Constraint constant

    priority

    Constraint priority. Default .required

    isActive

    true, if constraint must be activated, otherwise false. Default true

    Return Value

    RKConstraintCenter

  • Create ‘lessThanOrEqual’ constraint between centerXAnchor of current view and specific NSLayoutXAxisAnchor

    Declaration

    Swift

    public static func centerX(max anchor: NSLayoutXAxisAnchor, offset: CGFloat = 0, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintCenter

    Parameters

    anchor

    Specific NSLayoutXAxisAnchor

    offset

    Constraint constant. Default 0

    priority

    Constraint priority. Default .required

    isActive

    true, if constraint must be activated, otherwise false. Default true

    Return Value

    RKConstraintCenter

  • Create ‘lessThanOrEqual’ constraint between centerXAnchor of current view and centerXAnchor other view

    Declaration

    Swift

    public static func centerX(max view: UIView, offset: CGFloat = 0, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintCenter

    Parameters

    view

    Other view

    offset

    Constraint constant. Default 0

    priority

    Constraint priority. Default .required

    isActive

    true, if constraint must be activated, otherwise false. Default true

    Return Value

    RKConstraintCenter

  • Create ‘equal’ constraint between centerYAnchor of current view and centerYAnchor of superview

    Declaration

    Swift

    public static func centerY(_ offset: CGFloat = 0, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintCenter

    Parameters

    offset

    Constraint constant. Default 0

    priority

    Constraint priority. Default .required

    isActive

    true, if constraint must be activated, otherwise false. Default true

    Return Value

    RKConstraintCenter

  • Create ‘equal’ constraint between centerYAnchor of current view and specific NSLayoutYAxisAnchor

    Declaration

    Swift

    public static func centerY(_ anchor: NSLayoutYAxisAnchor, offset: CGFloat = 0, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintCenter

    Parameters

    anchor

    Specific NSLayoutYAxisAnchor

    offset

    Constraint constant. Default 0

    priority

    Constraint priority. Default .required

    isActive

    true, if constraint must be activated, otherwise false. Default true

    Return Value

    RKConstraintCenter

  • Create ‘equal’ constraint between centerYAnchor of current view and centerYAnchor other view

    Declaration

    Swift

    public static func centerY(_ view: UIView, offset: CGFloat = 0, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintCenter

    Parameters

    view

    Other view

    offset

    Constraint constant. Default 0

    priority

    Constraint priority. Default .required

    isActive

    true, if constraint must be activated, otherwise false. Default true

    Return Value

    RKConstraintCenter

  • Create ‘greaterThanOrEqual’ constraint between centerYAnchor of current view and centerYAnchor of superview

    Declaration

    Swift

    public static func centerY(min offset: CGFloat, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintCenter

    Parameters

    offset

    Constraint constant

    priority

    Constraint priority. Default .required

    isActive

    true, if constraint must be activated, otherwise false. Default true

    Return Value

    RKConstraintCenter

  • Create ‘greaterThanOrEqual’ constraint between centerYAnchor of current view and specific NSLayoutYAxisAnchor

    Declaration

    Swift

    public static func centerY(min anchor: NSLayoutYAxisAnchor, offset: CGFloat = 0, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintCenter

    Parameters

    anchor

    Specific NSLayoutYAxisAnchor

    offset

    Constraint constant. Default 0

    priority

    Constraint priority. Default .required

    isActive

    true, if constraint must be activated, otherwise false. Default true

    Return Value

    RKConstraintCenter

  • Create ‘greaterThanOrEqual’ constraint between centerYAnchor of current view and centerYAnchor other view

    Declaration

    Swift

    public static func centerY(min view: UIView, offset: CGFloat = 0, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintCenter

    Parameters

    view

    Other view

    offset

    Constraint constant. Default 0

    priority

    Constraint priority. Default .required

    isActive

    true, if constraint must be activated, otherwise false. Default true

    Return Value

    RKConstraintCenter

  • Create ‘lessThanOrEqual’ constraint between centerYAnchor of current view and centerYAnchor of superview

    Declaration

    Swift

    public static func centerY(max offset: CGFloat, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintCenter

    Parameters

    offset

    Constraint constant

    priority

    Constraint priority. Default .required

    isActive

    true, if constraint must be activated, otherwise false. Default true

    Return Value

    RKConstraintCenter

  • Create ‘lessThanOrEqual’ constraint between centerYAnchor of current view and specific NSLayoutYAxisAnchor

    Declaration

    Swift

    public static func centerY(max anchor: NSLayoutYAxisAnchor, offset: CGFloat = 0, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintCenter

    Parameters

    anchor

    Specific NSLayoutYAxisAnchor

    offset

    Constraint constant. Default 0

    priority

    Constraint priority. Default .required

    isActive

    true, if constraint must be activated, otherwise false. Default true

    Return Value

    RKConstraintCenter

  • Create ‘lessThanOrEqual’ constraint between centerYAnchor of current view and centerYAnchor other view

    Declaration

    Swift

    public static func centerY(max view: UIView, offset: CGFloat = 0, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintCenter

    Parameters

    view

    Other view

    offset

    Constraint constant. Default 0

    priority

    Constraint priority. Default .required

    isActive

    true, if constraint must be activated, otherwise false. Default true

    Return Value

    RKConstraintCenter