Size
public struct Size : RectBasedConstraint, Extensible
Set of size-based constraints
-
Undocumented
Declaration
Swift
public typealias Conformed = RectBasedConstraint
-
Common method for create entity of this type with base behavior.
Declaration
Swift
public static func build(_ base: RectBasedConstraint) -> Size
Parameters
base
Entity implements required behavior
Return Value
Initialized entity
-
Constraint, that makes height of source rect equal to height passed rect.
Declaration
Swift
public static func height(_ multiplier: CGFloat = 1) -> Size
Parameters
multiplier
Multiplier for height value
Return Value
Height constraint typed by Size
-
Constraint, that makes width of source rect equal to width passed rect.
Declaration
Swift
public static func width(_ multiplier: CGFloat = 1) -> Size
Parameters
multiplier
Multiplier for width value
Return Value
Width constraint typed by Size