EdgeAligningView
public final class EdgeAligningView<CustomView> : UIView where CustomView : UIView
Container view that allows its CustomView
to have lose connection to the margins of the container according to the
settings provided in EdgeAligningView.flexibleEdges
-
Represents an edge of
See moreEdgeAligningView
Declaration
Swift
public enum Edge : CaseIterable
-
Set of edge constraints to be set as loose.
Declaration
Swift
public var flexibleEdges: Set<Edge> { get set }
-
Contained view.
Declaration
Swift
public var customView: CustomView { get set }
-
Preferred priority of the internal constraints.
Declaration
Swift
public var preferredPriority: UILayoutPriority { get set }
-
Initializes and returns a newly allocated
EdgeAligningView
Declaration
Swift
public init(with customView: CustomView, flexibleEdges: Set<Edge> = [.top], preferredPriority: UILayoutPriority = .required)
Parameters
customView
An instance of
CustomView
flexibleEdges
Set of edges to be set as loose.
preferredPriority
Preferred priority of the internal constraints.
-
Initializes and returns a newly allocated view object with the specified frame rectangle.
Declaration
Swift
public override init(frame: CGRect)
Parameters
frame
The frame rectangle for the view, measured in points. The origin of the frame is relative to the superview in which you plan to add it.
-
Initializes and returns a newly allocated view object with the specified frame rectangle.
Declaration
Swift
public init(frame: CGRect, flexibleEdges: Set<Edge> = [], preferredPriority: UILayoutPriority = .required)
Parameters
frame
The frame rectangle for the view, measured in points. The origin of the frame is relative
flexibleEdges
Set of edges to be set as loose.
preferredPriority
Preferred priority of the internal constraints. to the superview in which you plan to add it.
-
A Boolean value that indicates whether the receiver depends on the constraint-based layout system.
Declaration
Swift
public override class var requiresConstraintBasedLayout: Bool { get }
-
Updates constraints for the view.
Declaration
Swift
public override func updateConstraints()