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.
-
Leading accessory view.
Declaration
Swift
public lazy var leadingView: LeadingAccessory.View? { get set }
-
Main view.
Declaration
Swift
public lazy var customView: CustomView { get set }
-
Trailing accessory view.
Declaration
Swift
public lazy var trailingView: TrailingAccessory.View? { get set }
-
Alignment that corresponds to
UIStackView.Alignment
Declaration
Swift
public var alignment: CellLayoutContainerViewAlignment { get set }
-
Default spacing between the views.
Declaration
Swift
public var spacing: CGFloat { get set }
-
Custom spacing between the leading and main views.
Declaration
Swift
public var customLeadingSpacing: CGFloat { get set }
-
Custom spacing between the main and trailing views.
Declaration
Swift
public var customTrailingSpacing: CGFloat { get set }
-
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.
-
Returns an object initialized from data in a given unarchiver.
Declaration
Swift
public required init?(coder: NSCoder)
Parameters
coder
An unarchiver object.