FUICardBaseDrawingView
open class FUICardBaseDrawingView : FUITintableDrawingView<FUIControlState>
Card-based drawing view. Not typically used directly by application developers.
A streamlined interface for laying out a collection of views in either a column or rows.
It calls each view in contents with systemLayoutSizeFitting(_:withHorizontalFittingPriority:verticalFittingPriority:)
to determine its optimal size and layout with other properties.
-
The axis along which the arranged views lay out.
This property determines the orientation of the arranged views. Assigning the
NSLayoutConstraint.Axis.vertical
value creates a column of views. Assigning theNSLayoutConstraint.Axis.horizontal
value creates multiple rows, the number of which is determined bynumberOfLines
.Declaration
Swift
public var axis: NSLayoutConstraint.Axis { get set }
-
The maximum number of lines for the view.
This property controls the maximum number of lines to use in order to arrange the contents into its bounding rectangle. The default value for this property is 0. To remove any maximum limit, and use as many lines as needed, set the value of this property to 0.
Declaration
Swift
public var numberOfLines: Int { get set }
-
The list of views arranged by the
FUICardBaseDrawingView
Declaration
Swift
public var contents: [UIView] { get set }
-
The distance in points between the adjacent edges of the contents views.
Declaration
Swift
public var spacing: CGFloat { get set }
-
The distance in points between two lines of
UIViews
Declaration
Swift
public var lineSpacing: CGFloat { get set }
-
a parent view layout handler is invoked in this view’s layout process
Declaration
Swift
public var parentViewLayoutHandler: (() -> Void)?
-
Declaration
Swift
public enum SeparatorStyle
-
The separator style to use between
UIViews
Declaration
Swift
public var separatorStyle: FUICardBaseDrawingView.SeparatorStyle { get set }