FUITableViewHeaderFooterView
open class FUITableViewHeaderFooterView: NibDesignableTableViewHeaderFooterView
UITableViewHeaderFooterView
reusable view for headers and footers. API matches that of FUICollectionSectionHeaderFooterView
.
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
open static var reuseIdentifier: String
Return Value
String a reuse identifier that describes FUITableViewHeaderFooterView
-
UILabel
for title content. Visible in all styles.Declaration
Swift
open var titleLabel: UILabel
-
UILabel
for attribute content. Hidden by default, in.title
style.Declaration
Swift
open var attributeLabel: UILabel
-
Bool
flag, to set whether disclosure indicator is visible. Hidden by default, in.title
style.Declaration
Swift
open var isDisclosureAccessoryHidden: Bool
-
Style of the view. Determines which views are visible; affects labels’ fonts, and vertical padding.
Declaration
Swift
open var style: FUISectionHeaderFooterStyle
-
Optional handler, to respond to tap events on the view.
Declaration
Swift
open var didSelectHandler: ((Void) -> (Void))?
-
Clear spacing preserved above the view. Should be used to set header spacing, when the table view’s header height is
UITableViewAutomaticDimension
.Declaration
Swift
open var leadingPadding: CGFloat = 0
-
Clear spacing preserved below the view. Should be used to set footer spacing, when the table view’s footer height is
UITableViewAutomaticDimension
.Declaration
Swift
open var trailingPadding: CGFloat = 0