# ImageMaskedView

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

A container view that masks its contained view with an image provided.

- `customView`

  Contained view.

  #### Declaration

  Swift

      public lazy var customView: CustomView { get set }

- `maskingImage`

  An Image to be used as a mask for the `customView`.

  #### Declaration

  Swift

      public var maskingImage: UIImage? { get set }

- `maskTransformation`

  A transformation to apply to the `maskingImage`.

  #### Declaration

  Swift

      public var maskTransformation: ImageMaskedViewTransformation { 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.

- `frame`

  The frame rectangle, which describes the view’s location and size in its superview’s coordinate system.

  #### Declaration

  Swift

      public override final var frame: CGRect { get set }

- `bounds`

  The bounds rectangle, which describes the view’s location and size in its own coordinate system.

  #### Declaration

  Swift

      public override final var bounds: CGRect { get set }