RKConstraintSize
public struct RKConstraintSize
Undocumented
-
Create ‘equal’ constraint widthAnchor of current view with constant
Declaration
Swift
public static func width(_ constant: CGFloat, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintSize
Parameters
constant
Constraint constant
priority
Constraint priority. Default .required
isActive
true, if constraint must be activated, otherwise false. Default true
Return Value
RKConstraintSize
-
Create ‘equal’ constraint widthAnchor of current view with specific dimension with multiplier
Declaration
Swift
public static func width(_ dimension: NSLayoutDimension, multiplier: CGFloat = 1.0, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintSize
Parameters
dimension
Specific dimension
multiplier
Constraint multiplier. Default 1.0
priority
Constraint priority. Default .required
isActive
true, if constraint must be activated, otherwise false. Default true
Return Value
RKConstraintSize
-
Create ‘equal’ constraint widthAnchor of current view and widthAnchor other view
Declaration
Swift
public static func width(_ view: UIView, multiplier: CGFloat = 1.0, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintSize
Parameters
view
Other view
multiplier
Constraint multiplier. Default 1.0
priority
Constraint priority. Default .required
isActive
true, if constraint must be activated, otherwise false. Default true
Return Value
RKConstraintSize
-
Create ‘greaterThanOrEqual’ constraint widthAnchor of current view with constant
Declaration
Swift
public static func width(min: CGFloat, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintSize
Parameters
min
Constraint constant
priority
Constraint priority. Default .required
isActive
true, if constraint must be activated, otherwise false. Default true
Return Value
RKConstraintSize
-
Create ‘greaterThanOrEqual’ constraint widthAnchor of current view with specific dimension with multiplier
Declaration
Swift
public static func width(min dimension: NSLayoutDimension, multiplier: CGFloat = 1.0, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintSize
Parameters
dimension
Specific dimension
multiplier
Constraint multiplier. Default 1.0
priority
Constraint priority. Default .required
isActive
true, if constraint must be activated, otherwise false. Default true
Return Value
RKConstraintSize
-
Create ‘greaterThanOrEqual’ constraint widthAnchor of current view and widthAnchor other view
Declaration
Swift
public static func width(min view: UIView, multiplier: CGFloat = 1.0, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintSize
Parameters
view
Other view
multiplier
Constraint multiplier. Default 1.0
priority
Constraint priority. Default .required
isActive
true, if constraint must be activated, otherwise false. Default true
Return Value
RKConstraintSize
-
Create ‘lessThanOrEqual’ constraint widthAnchor of current view with constant
Declaration
Swift
public static func width(max: CGFloat, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintSize
Parameters
max
Constraint constant
priority
Constraint priority. Default .required
isActive
true, if constraint must be activated, otherwise false. Default true
Return Value
RKConstraintSize
-
Create ‘lessThanOrEqual’ constraint widthAnchor of current view with specific dimension with multiplier
Declaration
Swift
public static func width(max dimension: NSLayoutDimension, multiplier: CGFloat = 1.0, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintSize
Parameters
dimension
Specific dimension
multiplier
Constraint multiplier. Default 1.0
priority
Constraint priority. Default .required
isActive
true, if constraint must be activated, otherwise false. Default true
Return Value
RKConstraintSize
-
Create ‘lessThanOrEqual’ constraint widthAnchor of current view and widthAnchor other view
Declaration
Swift
public static func width(max view: UIView, multiplier: CGFloat = 1.0, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintSize
Parameters
view
Other view
multiplier
Constraint multiplier. Default 1.0
priority
Constraint priority. Default .required
isActive
true, if constraint must be activated, otherwise false. Default true
Return Value
RKConstraintSize
-
Create ‘equal’ constraint heightAnchor of current view with constant
Declaration
Swift
public static func height(_ constant: CGFloat, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintSize
Parameters
constant
Constraint constant
priority
Constraint priority. Default .required
isActive
true, if constraint must be activated, otherwise false. Default true
Return Value
RKConstraintSize
-
Create ‘equal’ constraint heightAnchor of current view with specific dimension with multiplier
Declaration
Swift
public static func height(_ dimension: NSLayoutDimension, multiplier: CGFloat = 1.0, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintSize
Parameters
dimension
Specific dimension
multiplier
Constraint multiplier. Default 1.0
priority
Constraint priority. Default .required
isActive
true, if constraint must be activated, otherwise false. Default true
Return Value
RKConstraintSize
-
Create ‘equal’ constraint heightAnchor of current view and heightAnchor other view
Declaration
Swift
public static func height(_ view: UIView, multiplier: CGFloat = 1.0, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintSize
Parameters
view
Other view
multiplier
Constraint multiplier. Default 1.0
priority
Constraint priority. Default .required
isActive
true, if constraint must be activated, otherwise false. Default true
Return Value
RKConstraintSize
-
Create ‘greaterThanOrEqual’ constraint heightAnchor of current view with constant
Declaration
Swift
public static func height(min: CGFloat, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintSize
Parameters
min
Constraint constant
priority
Constraint priority. Default .required
isActive
true, if constraint must be activated, otherwise false. Default true
Return Value
RKConstraintSize
-
Create ‘greaterThanOrEqual’ constraint heightAnchor of current view with specific dimension with multiplier
Declaration
Swift
public static func height(min dimension: NSLayoutDimension, multiplier: CGFloat = 1.0, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintSize
Parameters
dimension
Specific dimension
multiplier
Constraint multiplier. Default 1.0
priority
Constraint priority. Default .required
isActive
true, if constraint must be activated, otherwise false. Default true
Return Value
RKConstraintSize
-
Create ‘greaterThanOrEqual’ constraint heightAnchor of current view and heightAnchor other view
Declaration
Swift
public static func height(min view: UIView, multiplier: CGFloat = 1.0, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintSize
Parameters
view
Other view
multiplier
Constraint multiplier. Default 1.0
priority
Constraint priority. Default .required
isActive
true, if constraint must be activated, otherwise false. Default true
Return Value
RKConstraintSize
-
Create ‘lessThanOrEqual’ constraint heightAnchor of current view with constant
Declaration
Swift
public static func height(max: CGFloat, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintSize
Parameters
max
Constraint constant
priority
Constraint priority. Default .required
isActive
true, if constraint must be activated, otherwise false. Default true
Return Value
RKConstraintSize
-
Create ‘lessThanOrEqual’ constraint heightAnchor of current view with specific dimension with multiplier
Declaration
Swift
public static func height(max dimension: NSLayoutDimension, multiplier: CGFloat = 1.0, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintSize
Parameters
dimension
Specific dimension
multiplier
Constraint multiplier. Default 1.0
priority
Constraint priority. Default .required
isActive
true, if constraint must be activated, otherwise false. Default true
Return Value
RKConstraintSize
-
Create ‘lessThanOrEqual’ constraint heightAnchor of current view and heightAnchor other view
Declaration
Swift
public static func height(max view: UIView, multiplier: CGFloat = 1.0, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintSize
Parameters
view
Other view
multiplier
Constraint multiplier. Default 1.0
priority
Constraint priority. Default .required
isActive
true, if constraint must be activated, otherwise false. Default true
Return Value
RKConstraintSize