FUITableViewHeaderFooterView
@MainActor
open class FUITableViewHeaderFooterView : NibDesignableTableViewHeaderFooterView
UITableViewHeaderFooterView reusable view for headers and footers.
The UITableViewHeaderFooterView has two style options: .title, and .attribute.
In .title style, only the titleLabel is displayed.
In .attribute style, the titleLabel is displayed, and the attributeLabel may also be displayed. Also, in .attribute style, the disclosure indicator is displayed by default.
-
Reuse identifier
Declaration
Swift
@MainActor open class var reuseIdentifier: String { get }Return Value
String a reuse identifier that describes FUITableViewHeaderFooterView
-
Sets background color of the header content for the normal and highlighted states.
Declaration
Swift
@MainActor public func setBackgroundColor(_ color: UIColor, forState state: UIControlState)Parameters
colorset to header content
backgroundColorstatethe UIControlState for which to set the color. Can be either .normal or .highlighted
-
Sets background color of the header content for the normal state.
Declaration
Swift
@nonobjc @MainActor public func setBackgroundColor(_ color: UIColor)Parameters
colorset to header content
backgroundColor -
UILabelfor title content. Visible in all styles.Declaration
Swift
@MainActor public var titleLabel: UILabel { get } -
UILabelfor attribute content. Hidden by default, in.titlestyle.Declaration
Swift
@MainActor public var attributeLabel: UILabel { get } -
Boolflag, to set whether disclosure indicator is visible. Hidden by default, in.titlestyle.Declaration
Swift
@MainActor public var isDisclosureAccessoryHidden: Bool { get set } -
Style of the view. Determines which views are visible; affects labels’ fonts, and vertical padding.
Declaration
Swift
@MainActor public var style: FUISectionHeaderFooterStyle { get set } -
Optional handler, to respond to tap events on the view.
Declaration
Swift
@MainActor public var didSelectHandler: (() -> Void)? { get set } -
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
@MainActor 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
@MainActor 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
@MainActor 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.leftand.rightwill be ignored.view.separators = .topDeclaration
Swift
@MainActor public var separators: UIRectEdge { get set } -
Insets applied to separator lines, relative to
superview.layoutMargins.Note
Only.leftand.rightproperties of theUIEdgeInsetsare used..topand.bottomvalues provided are ignored.Declaration
Swift
@MainActor public var separatorInset: UIEdgeInsets { get set } -
Color used for separator lines. Defaults to
.line.Declaration
Swift
@MainActor public var separatorsLineColor: UIColor { get set }