# CellLayoutContainerView

    public final class CellLayoutContainerView<LeadingAccessory, CustomView, TrailingAccessory> : UIView where LeadingAccessory : StaticViewFactory, CustomView : UIView, TrailingAccessory : StaticViewFactory

`CellLayoutContainerView` is a container view that helps to arrange the views in a horizontal cell-alike layout with an optional `LeadingAccessory` first, a `CustomView` next and am optional `TrailingAccessory` last. Use `VoidViewFactory` to specify that `LeadingAccessory` or `TrailingAccessory` views should not be allocated.

- `leadingView`

  Leading accessory view.

  #### Declaration

  Swift

      public lazy var leadingView: LeadingAccessory.View? { get set }

- `customView`

  Main view.

  #### Declaration

  Swift

      public lazy var customView: CustomView { get set }

- `trailingView`

  Trailing accessory view.

  #### Declaration

  Swift

      public lazy var trailingView: TrailingAccessory.View? { get set }

- `alignment`

  Alignment that corresponds to `UIStackView.Alignment`

  #### Declaration

  Swift

      public var alignment: CellLayoutContainerViewAlignment { get set }

- `spacing`

  Default spacing between the views.

  #### Declaration

  Swift

      public var spacing: CGFloat { get set }

- `customLeadingSpacing`

  Custom spacing between the leading and main views.

  #### Declaration

  Swift

      public var customLeadingSpacing: CGFloat { get set }

- `customTrailingSpacing`

  Custom spacing between the main and trailing views.

  #### Declaration

  Swift

      public var customTrailingSpacing: CGFloat { 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.