FUIBaseTableViewHeaderFooterView

open class FUIBaseTableViewHeaderFooterView : UITableViewHeaderFooterView, FUIViewBorderDrawing

A UITableViewHeaderFooterView subclass, which supports top and bottom padding and separators.

  • Reuse identifier

    Declaration

    Swift

    open class var reuseIdentifier: String { get }
  • Clear spacing preserved above the view. Should be used to set header spacing, when the table view’s header height is UITableView.automaticDimension.

    Declaration

    Swift

    public var topPadding: CGFloat { get set }
  • Clear spacing preserved below the view. Should be used to set footer spacing, when the table view’s footer height is UITableView.automaticDimension.

    Declaration

    Swift

    public var bottomPadding: CGFloat { get set }
  • The style of selected header.

    • .default, .gray: both are the regular selection style with gray selected background color.
    • .none: none selected background color.
    • .blue: not supported.

    Declaration

    Swift

    open var selectionStyle: UITableViewCellSelectionStyle
  • The set of edges of the view, which should display a separator line.

    Defaults to .none.

    Important

    Only top and bottom edges support separator lines. Options .left and .right will be ignored.
     view.separators = .top
    

    Declaration

    Swift

    open var borders: [FUIViewEdge] { get set }
  • Sets background color of the header content for the normal and highlighted states.

    Declaration

    Swift

    public func setBackgroundColor(_ color: UIColor, forState state: UIControlState = .normal)

    Parameters

    color

    set to header content backgroundColor

    state

    the UIControlState for which to set the color. Can be either .normal or .highlighted