# 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`

- `Edge`

  Represents an edge of `EdgeAligningView`

  See more

  #### Declaration

  Swift

      public enum Edge : CaseIterable

- `flexibleEdges`

  Set of edge constraints to be set as loose.

  #### Declaration

  Swift

      public var flexibleEdges: Set<Edge> { get set }

- `customView`

  Contained view.

  #### Declaration

  Swift

      public var customView: CustomView { get set }

- `preferredPriority`

  Preferred priority of the internal constraints.

  #### Declaration

  Swift

      public var preferredPriority: UILayoutPriority { get set }

- `init(with:flexibleEdges:preferredPriority:)`

  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.

- `init(frame:)`

  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.

- `init(frame:flexibleEdges:preferredPriority:)`

  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.

- `requiresConstraintBasedLayout`

  A Boolean value that indicates whether the receiver depends on the constraint-based layout system.

  #### Declaration

  Swift

      public override class var requiresConstraintBasedLayout: Bool { get }

- `updateConstraints()`

  Updates constraints for the view.

  #### Declaration

  Swift

      public override func updateConstraints()