FUIBaseDrawingCollectionViewCell
@MainActor
open class FUIBaseDrawingCollectionViewCell<InnerView> : UICollectionViewCell, FUIStyleByStringAttributes, InnerViewContainer, FUIViewBorderDrawing where InnerView : FUIBaseFixedMarginsView, InnerView : FUIBackgroundSchemeSupporting, InnerView : FUICalculateLayout, InnerView : FUIStyleByStringAttributes
Undocumented
-
Reuse identifier @return convenience
reuseIdentifierDeclaration
Swift
@MainActor open class var reuseIdentifier: String { get } -
A Boolean property that indicates whether the component is enabled.
The default value is true.
Declaration
Swift
@MainActor public var isEnabled: Bool -
Indicates whether a tap action will result in a persistent cell selection background, or a momentary highlight.
Important
does not affect the behavior ofisSelectedDeclaration
Swift
@MainActor public var isMomentarySelection: Bool -
Declaration
Swift
@MainActor public internal(set) var _innerView: InnerView! { get } -
Initializer
Declaration
Swift
@MainActor required public init?(coder aDecoder: NSCoder) -
Undocumented
Declaration
Swift
@MainActor override public init(frame: CGRect)
-
The set of edges of the cell, which should display a border line.
Defaults to
[].Important
It is typically necessary to set thelayoutMarginsproperty for theFUIAccessoryCollectionViewCellwhen showing left or right edge borders.cell.borders = [.top, .left] cell.layoutMargins = UIEdgeInsets(top: 0, left: 16, bottom: 0, right: 16)Declaration
Swift
@MainActor public var borders: UIRectEdge { get set } -
The background color of all border lines in the cell.
Defaults to
FUIColorStyle.lineTo set unique color properties for a specific edge, access the view for the border line directly. (e.g.:
topBorder.backgroundColor = .darkGray)Declaration
Swift
@MainActor public var borderColor: UIColor { get set } -
The widths of the cell’s borders.
The width of the border line on each edge of the cell, facing inward towards the center of the cell. Only positive values are used; negative values will be read as absolute values, using
abs(value).The
getterfor this property constructs aUIEdgeInsetsstruct from the currenttopBorderWeight,leftBorderWeight,bottomBorderWeight, andrightBorderWeightproperty values. Thesetterfor this property updates the values for those properties, respectively.Important
The width value for an edge is ignored, unless that edge is included in the cell’sbordersoption set.Declaration
Swift
@MainActor public var borderWeights: UIEdgeInsets { get set } -
The width value for the top border view.
Defaults to
2 / UIScreen.main.scaleDeclaration
Swift
@MainActor public var topBorderWeight: CGFloat { get set } -
The width value for the left border view.
Defaults to
1 / UIScreen.main.scaleDeclaration
Swift
@MainActor public var leftBorderWeight: CGFloat { get set } -
The width value for the bottom border view.
Defaults to
1 / UIScreen.main.scaleDeclaration
Swift
@MainActor public var bottomBorderWeight: CGFloat { get set } -
The width value for the right border view.
Defaults to
1 / UIScreen.main.scaleDeclaration
Swift
@MainActor public var rightBorderWeight: CGFloat { get set }