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 }
-
Initializes and returns a newly allocated
EdgeAligningView
Declaration
Swift
public init(with customView: CustomView, flexibleEdges: Set<Edge> = [.top])
Parameters
alignedView
An instance of
CustomView
flexibleEdges
Set of edges to be set as loose.
-
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.