UILayoutPriority
extension UILayoutPriority: ExpressibleByFloatLiteral, ExpressibleByIntegerLiteral
-
SwifterSwift: Initialize
UILayoutPriority
with a float literalconstraint.priority = 0.5
Declaration
Swift
public init(floatLiteral value: Float)
Parameters
value
The float value of the constraint
-
SwifterSwift: Initialize
UILayoutPriority
with an integer literalconstraint.priority = 5
Declaration
Swift
public init(integerLiteral value: Int)
Parameters
value
The integer value of the constraint