# RoundedCornersContainerView

    public final class RoundedCornersContainerView<CustomView> : UIView where CustomView : UIView

A container view that keeps its `CustomView` masked with the corner radius provided.

- `cornerRadius`

  Corner radius. If not provided then the half of the current view height will be used.

  #### Declaration

  Swift

      public var cornerRadius: CGFloat?

- `customView`

  Contained view.

  #### Declaration

  Swift

      public lazy var customView: CustomView { get set }

- `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(coder:)`

  Returns an object initialized from data in a given unarchiver.

  #### Declaration

  Swift

      public required init?(coder: NSCoder)

  #### Parameters

  `coder` | An unarchiver object.

- `layoutSubviews()`

  Lays out subviews.

  #### Declaration

  Swift

      public override func layoutSubviews()