FUIBaseDrawingCollectionViewCell

open class FUIBaseDrawingCollectionViewCell<InnerView> : UICollectionViewCell, FUIStyleByStringAttributes, InnerViewContainer, FUIViewBorderDrawing where InnerView : FUIBaseFixedMarginsView, InnerView : FUIBackgroundSchemeSupporting, InnerView : FUICalculateLayout, InnerView : FUIStyleByStringAttributes

Undocumented

  • Reuse identifier @return convenience reuseIdentifier

    Declaration

    Swift

    open class var reuseIdentifier: String { get }
  • Declaration

    Swift

    public internal(set) var _innerView: InnerView! { get }
  • Initializer

    Declaration

    Swift

    required public init?(coder aDecoder: NSCoder)
  • Undocumented

    Declaration

    Swift

    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 the layoutMargins property for the FUIAccessoryCollectionViewCell when showing left or right edge borders.
     cell.borders = [.top, .left]
     cell.layoutMargins = UIEdgeInsets(top: 0, left: 16, bottom: 0, right: 16)
    

    Declaration

    Swift

    public var borders: UIRectEdge { get set }
  • The background color of all border lines in the cell.

    Defaults to FUIColorStyle.line

    To set unique color properties for a specific edge, access the view for the border line directly. (e.g.: topBorder.backgroundColor = .darkGray)

    Declaration

    Swift

    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 getter for this property constructs a UIEdgeInsets struct from the current topBorderWeight, leftBorderWeight, bottomBorderWeight, and rightBorderWeight property values. The setter for 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’s borders option set.

    Declaration

    Swift

    public var borderWeights: UIEdgeInsets { get set }
  • The width value for the top border view.

    Defaults to 2 / UIScreen.main.scale

    Declaration

    Swift

    public var topBorderWeight: CGFloat { get set }
  • The width value for the left border view.

    Defaults to 1 / UIScreen.main.scale

    Declaration

    Swift

    public var leftBorderWeight: CGFloat { get set }
  • The width value for the bottom border view.

    Defaults to 1 / UIScreen.main.scale

    Declaration

    Swift

    public var bottomBorderWeight: CGFloat { get set }
  • The width value for the right border view.

    Defaults to 1 / UIScreen.main.scale

    Declaration

    Swift

    public var rightBorderWeight: CGFloat { get set }