RKConstraintEdge
public struct RKConstraintEdge
Undocumented
-
Create ‘equal’ constraint between topAnchor of current view and topAnchor of superview
Declaration
Swift
public static func top(_ offset: CGFloat, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintEdge
Parameters
offset
Constraint constant
priority
Constraint priority. Default .required
isActive
true, if constraint must be activated, otherwise false. Default true
Return Value
RKConstraintEdge
-
Create ‘equal’ constraint between topAnchor of current view and specific NSLayoutYAxisAnchor
Declaration
Swift
public static func top(_ anchor: NSLayoutYAxisAnchor, offset: CGFloat = 0, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintEdge
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
RKConstraintEdge
-
Create ‘equal’ constraint between topAnchor of current view and topAnchor other view
Declaration
Swift
public static func top(_ view: UIView, offset: CGFloat = 0, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintEdge
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
RKConstraintEdge
-
Create ‘greaterThanOrEqual’ constraint between topAnchor of current view and topAnchor of superview
Declaration
Swift
public static func top(min offset: CGFloat, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintEdge
Parameters
offset
Constraint constant
priority
Constraint priority. Default .required
isActive
true, if constraint must be activated, otherwise false. Default true
Return Value
RKConstraintEdge
-
Create ‘greaterThanOrEqual’ constraint between topAnchor of current view and specific NSLayoutYAxisAnchor
Declaration
Swift
public static func top(min anchor: NSLayoutYAxisAnchor, offset: CGFloat = 0, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintEdge
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
RKConstraintEdge
-
Create ‘greaterThanOrEqual’ constraint between topAnchor of current view and topAnchor other view
Declaration
Swift
public static func top(min view: UIView, offset: CGFloat = 0, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintEdge
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
RKConstraintEdge
-
Create ‘lessThanOrEqual’ constraint between topAnchor of current view and topAnchor of superview
Declaration
Swift
public static func top(max offset: CGFloat, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintEdge
Parameters
offset
Constraint constant
priority
Constraint priority. Default .required
isActive
true, if constraint must be activated, otherwise false. Default true
Return Value
RKConstraintEdge
-
Create ‘lessThanOrEqual’ constraint between topAnchor of current view and specific NSLayoutYAxisAnchor
Declaration
Swift
public static func top(max anchor: NSLayoutYAxisAnchor, offset: CGFloat = 0, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintEdge
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
RKConstraintEdge
-
Create ‘lessThanOrEqual’ constraint between topAnchor of current view and topAnchor other view
Declaration
Swift
public static func top(max view: UIView, offset: CGFloat = 0, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintEdge
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
RKConstraintEdge
-
Create ‘equal’ constraint between leftAnchor of current view and leftAnchor of superview
Declaration
Swift
public static func left(_ offset: CGFloat, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintEdge
Parameters
offset
Constraint constant
priority
Constraint priority. Default .required
isActive
true, if constraint must be activated, otherwise false. Default true
Return Value
RKConstraintEdge
-
Create ‘equal’ constraint between leftAnchor of current view and specific NSLayoutXAxisAnchor
Declaration
Swift
public static func left(_ anchor: NSLayoutXAxisAnchor, offset: CGFloat = 0, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintEdge
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
RKConstraintEdge
-
Create ‘equal’ constraint between leftAnchor of current view and leftAnchor other view
Declaration
Swift
public static func left(_ view: UIView, offset: CGFloat = 0, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintEdge
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
RKConstraintEdge
-
Create ‘greaterThanOrEqual’ constraint between leftAnchor of current view and leftAnchor of superview
Declaration
Swift
public static func left(min offset: CGFloat, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintEdge
Parameters
offset
Constraint constant
priority
Constraint priority. Default .required
isActive
true, if constraint must be activated, otherwise false. Default true
Return Value
RKConstraintEdge
-
Create ‘greaterThanOrEqual’ constraint between leftAnchor of current view and specific NSLayoutXAxisAnchor
Declaration
Swift
public static func left(min anchor: NSLayoutXAxisAnchor, offset: CGFloat = 0, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintEdge
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
RKConstraintEdge
-
Create ‘greaterThanOrEqual’ constraint between leftAnchor of current view and leftAnchor other view
Declaration
Swift
public static func left(min view: UIView, offset: CGFloat = 0, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintEdge
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
RKConstraintEdge
-
Create ‘lessThanOrEqual’ constraint between leftAnchor of current view and leftAnchor of superview
Declaration
Swift
public static func left(max offset: CGFloat, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintEdge
Parameters
offset
Constraint constant
priority
Constraint priority. Default .required
isActive
true, if constraint must be activated, otherwise false. Default true
Return Value
RKConstraintEdge
-
Create ‘lessThanOrEqual’ constraint between leftAnchor of current view and specific NSLayoutXAxisAnchor
Declaration
Swift
public static func left(max anchor: NSLayoutXAxisAnchor, offset: CGFloat = 0, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintEdge
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
RKConstraintEdge
-
Create ‘lessThanOrEqual’ constraint between leftAnchor of current view and leftAnchor other view
Declaration
Swift
public static func left(max view: UIView, offset: CGFloat = 0, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintEdge
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
RKConstraintEdge
-
Create ‘equal’ constraint between leadingAnchor of current view and leadingAnchor of superview
Declaration
Swift
public static func leading(_ offset: CGFloat, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintEdge
Parameters
offset
Constraint constant
priority
Constraint priority. Default .required
isActive
true, if constraint must be activated, otherwise false. Default true
Return Value
RKConstraintEdge
-
Create ‘equal’ constraint between leadingAnchor of current view and specific NSLayoutXAxisAnchor
Declaration
Swift
public static func leading(_ anchor: NSLayoutXAxisAnchor, offset: CGFloat = 0, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintEdge
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
RKConstraintEdge
-
Create ‘equal’ constraint between leadingAnchor of current view and leadingAnchor other view
Declaration
Swift
public static func leading(_ view: UIView, offset: CGFloat = 0, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintEdge
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
RKConstraintEdge
-
Create ‘greaterThanOrEqual’ constraint between leadingAnchor of current view and leadingAnchor of superview
Declaration
Swift
public static func leading(min offset: CGFloat, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintEdge
Parameters
offset
Constraint constant
priority
Constraint priority. Default .required
isActive
true, if constraint must be activated, otherwise false. Default true
Return Value
RKConstraintEdge
-
Create ‘greaterThanOrEqual’ constraint between leadingAnchor of current view and specific NSLayoutXAxisAnchor
Declaration
Swift
public static func leading(min anchor: NSLayoutXAxisAnchor, offset: CGFloat = 0, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintEdge
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
RKConstraintEdge
-
Create ‘greaterThanOrEqual’ constraint between leadingAnchor of current view and leadingAnchor other view
Declaration
Swift
public static func leading(min view: UIView, offset: CGFloat = 0, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintEdge
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
RKConstraintEdge
-
Create ‘lessThanOrEqual’ constraint between leadingAnchor of current view and leadingAnchor of superview
Declaration
Swift
public static func leading(max offset: CGFloat, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintEdge
Parameters
offset
Constraint constant
priority
Constraint priority. Default .required
isActive
true, if constraint must be activated, otherwise false. Default true
Return Value
RKConstraintEdge
-
Create ‘lessThanOrEqual’ constraint between leadingAnchor of current view and specific NSLayoutXAxisAnchor
Declaration
Swift
public static func leading(max anchor: NSLayoutXAxisAnchor, offset: CGFloat = 0, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintEdge
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
RKConstraintEdge
-
Create ‘lessThanOrEqual’ constraint between leadingAnchor of current view and leadingAnchor other view
Declaration
Swift
public static func leading(max view: UIView, offset: CGFloat = 0, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintEdge
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
RKConstraintEdge
-
Create ‘equal’ constraint between bottomAnchor of current view and bottomAnchor of superview
Declaration
Swift
public static func bottom(_ offset: CGFloat, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintEdge
Parameters
offset
Constraint constant
priority
Constraint priority. Default .required
isActive
true, if constraint must be activated, otherwise false. Default true
Return Value
RKConstraintEdge
-
Create ‘equal’ constraint between bottomAnchor of current view and specific NSLayoutYAxisAnchor
Declaration
Swift
public static func bottom(_ anchor: NSLayoutYAxisAnchor, offset: CGFloat = 0, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintEdge
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
RKConstraintEdge
-
Create ‘equal’ constraint between bottomAnchor of current view and bottomAnchor other view
Declaration
Swift
public static func bottom(_ view: UIView, offset: CGFloat = 0, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintEdge
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
RKConstraintEdge
-
Undocumented
Declaration
Swift
public static func bottomGreaterOrEqual(_ offset: CGFloat, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintEdge
-
Create ‘greaterThanOrEqual’ constraint between bottomAnchor of current view and bottomAnchor of superview
Declaration
Swift
public static func bottom(min offset: CGFloat, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintEdge
Parameters
offset
Constraint constant
priority
Constraint priority. Default .required
isActive
true, if constraint must be activated, otherwise false. Default true
Return Value
RKConstraintEdge
-
Create ‘greaterThanOrEqual’ constraint between bottomAnchor of current view and specific NSLayoutYAxisAnchor
Declaration
Swift
public static func bottom(min anchor: NSLayoutYAxisAnchor, offset: CGFloat = 0, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintEdge
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
RKConstraintEdge
-
Create ‘greaterThanOrEqual’ constraint between bottomAnchor of current view and bottomAnchor other view
Declaration
Swift
public static func bottom(min view: UIView, offset: CGFloat = 0, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintEdge
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
RKConstraintEdge
-
Create ‘lessThanOrEqual’ constraint between bottomAnchor of current view and topAnchor of superview
Declaration
Swift
public static func bottom(max offset: CGFloat, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintEdge
Parameters
offset
Constraint constant
priority
Constraint priority. Default .required
isActive
true, if constraint must be activated, otherwise false. Default true
Return Value
RKConstraintEdge
-
Create ‘lessThanOrEqual’ constraint between bottomAnchor of current view and specific NSLayoutYAxisAnchor
Declaration
Swift
public static func bottom(max anchor: NSLayoutYAxisAnchor, offset: CGFloat = 0, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintEdge
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
RKConstraintEdge
-
Create ‘lessThanOrEqual’ constraint between bottomAnchor of current view and bottomAnchor other view
Declaration
Swift
public static func bottom(max view: UIView, offset: CGFloat = 0, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintEdge
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
RKConstraintEdge
-
Create ‘equal’ constraint between rightAnchor of current view and rightAnchor of superview
Declaration
Swift
public static func right(_ offset: CGFloat, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintEdge
Parameters
offset
Constraint constant
priority
Constraint priority. Default .required
isActive
true, if constraint must be activated, otherwise false. Default true
Return Value
RKConstraintEdge
-
Create ‘equal’ constraint between rightAnchor of current view and specific NSLayoutXAxisAnchor
Declaration
Swift
public static func right(_ anchor: NSLayoutXAxisAnchor, offset: CGFloat = 0, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintEdge
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
RKConstraintEdge
-
Create ‘equal’ constraint between rightAnchor of current view and rightAnchor other view
Declaration
Swift
public static func right(_ view: UIView, offset: CGFloat = 0, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintEdge
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
RKConstraintEdge
-
Create ‘greaterThanOrEqual’ constraint between rightAnchor of current view and rightAnchor of superview
Declaration
Swift
public static func right(min offset: CGFloat, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintEdge
Parameters
offset
Constraint constant
priority
Constraint priority. Default .required
isActive
true, if constraint must be activated, otherwise false. Default true
Return Value
RKConstraintEdge
-
Create ‘greaterThanOrEqual’ constraint between rightAnchor of current view and specific NSLayoutXAxisAnchor
Declaration
Swift
public static func right(min anchor: NSLayoutXAxisAnchor, offset: CGFloat = 0, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintEdge
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
RKConstraintEdge
-
Create ‘greaterThanOrEqual’ constraint between rightAnchor of current view and rightAnchor other view
Declaration
Swift
public static func right(min view: UIView, offset: CGFloat = 0, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintEdge
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
RKConstraintEdge
-
Create ‘lessThanOrEqual’ constraint between rightAnchor of current view and rightAnchor of superview
Declaration
Swift
public static func right(max offset: CGFloat, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintEdge
Parameters
offset
Constraint constant
priority
Constraint priority. Default .required
isActive
true, if constraint must be activated, otherwise false. Default true
Return Value
RKConstraintEdge
-
Create ‘lessThanOrEqual’ constraint between rightAnchor of current view and specific NSLayoutXAxisAnchor
Declaration
Swift
public static func right(max anchor: NSLayoutXAxisAnchor, offset: CGFloat = 0, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintEdge
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
RKConstraintEdge
-
Create ‘lessThanOrEqual’ constraint between rightAnchor of current view and rightAnchor other view
Declaration
Swift
public static func right(max view: UIView, offset: CGFloat = 0, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintEdge
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
RKConstraintEdge
-
Create ‘equal’ constraint between trailingAnchor of current view and trailingAnchor of superview
Declaration
Swift
public static func trailing(_ offset: CGFloat, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintEdge
Parameters
offset
Constraint constant
priority
Constraint priority. Default .required
isActive
true, if constraint must be activated, otherwise false. Default true
Return Value
RKConstraintEdge
-
Create ‘equal’ constraint between trailingAnchor of current view and specific NSLayoutXAxisAnchor
Declaration
Swift
public static func trailing(_ anchor: NSLayoutXAxisAnchor, offset: CGFloat = 0, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintEdge
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
RKConstraintEdge
-
Create ‘equal’ constraint between trailingAnchor of current view and trailingAnchor other view
Declaration
Swift
public static func trailing(_ view: UIView, offset: CGFloat = 0, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintEdge
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
RKConstraintEdge
-
Create ‘greaterThanOrEqual’ constraint between trailingAnchor of current view and trailingAnchor of superview
Declaration
Swift
public static func trailing(min offset: CGFloat, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintEdge
Parameters
offset
Constraint constant
priority
Constraint priority. Default .required
isActive
true, if constraint must be activated, otherwise false. Default true
Return Value
RKConstraintEdge
-
Create ‘greaterThanOrEqual’ constraint between trailingAnchor of current view and specific NSLayoutXAxisAnchor
Declaration
Swift
public static func trailing(min anchor: NSLayoutXAxisAnchor, offset: CGFloat = 0, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintEdge
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
RKConstraintEdge
-
Create ‘greaterThanOrEqual’ constraint between trailingAnchor of current view and trailingAnchor other view
Declaration
Swift
public static func trailing(min view: UIView, offset: CGFloat = 0, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintEdge
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
RKConstraintEdge
-
Create ‘lessThanOrEqual’ constraint between trailingAnchor of current view and trailingAnchor of superview
Declaration
Swift
public static func trailing(max offset: CGFloat, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintEdge
Parameters
offset
Constraint constant
priority
Constraint priority. Default .required
isActive
true, if constraint must be activated, otherwise false. Default true
Return Value
RKConstraintEdge
-
Create ‘lessThanOrEqual’ constraint between trailingAnchor of current view and specific NSLayoutXAxisAnchor
Declaration
Swift
public static func trailing(max anchor: NSLayoutXAxisAnchor, offset: CGFloat = 0, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintEdge
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
RKConstraintEdge
-
Create ‘lessThanOrEqual’ constraint between trailingAnchor of current view and trailingAnchor other view
Declaration
Swift
public static func trailing(max view: UIView, offset: CGFloat = 0, priority: RKConstraintPriority = .required, isActive: Bool = true) -> RKConstraintEdge
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
RKConstraintEdge