# MessageContainerView

    public final class MessageContainerView<AccessoryViewFactory, MainView> : UIView where AccessoryViewFactory : StaticViewFactory, MainView : UIView

A container view that helps to layout the message view and its accessory

- `accessoryView`

  An accessory view.

  #### Declaration

  Swift

      public lazy var accessoryView: AccessoryViewFactory.View? { get set }

- `customView`

  Main view.

  #### Declaration

  Swift

      public var customView: MainView { get }

- `alignment`

  An alignment of the contained views within the `MessageContainerView`,

  #### Declaration

  Swift

      public var alignment: ChatItemAlignment { 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.