UILayoutPriority

extension UILayoutPriority: ExpressibleByFloatLiteral, ExpressibleByIntegerLiteral

Initializers

  • SwifterSwift: Initialize UILayoutPriority with a float literal

    constraint.priority = 0.5
    

    Declaration

    Swift

    public init(floatLiteral value: Float)

    Parameters

    value

    The float value of the constraint

  • SwifterSwift: Initialize UILayoutPriority with an integer literal

    constraint.priority = 5
    

    Declaration

    Swift

    public init(integerLiteral value: Int)

    Parameters

    value

    The integer value of the constraint