FUICollectionSectionHeaderFooterView

open class FUICollectionSectionHeaderFooterView : NibDesignableCollectionReusableView

UICollectionReusableView supplementary view for headers and footers. API matches that of FUITableViewHeaderFooterView, excluding leading- and trailingPadding properties.

The FUICollectionSectionHeaderFooterView 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 class var reuseIdentifier: String { get }

    Return Value

    String a reuse identifier that describes FUICollectionSectionHeaderFooterView

  • UILabel for title content. Visible in all styles.

    Declaration

    Swift

    public var titleLabel: UILabel { get }
  • UILabel for attribute content. Hidden by default, in .title style.

    Declaration

    Swift

    public var attributeLabel: UILabel { get }
  • Bool flag, to set whether disclosure indicator is visible. Hidden by default, in .title style.

    Declaration

    Swift

    public var isDisclosureAccessoryHidden: Bool { get set }
  • Style of the view. Determines which views are visible; affects labels’ fonts, and vertical padding.

    Declaration

    Swift

    public var style: FUISectionHeaderFooterStyle { get set }
  • Optional handler, to respond to tap events on the view.

    Declaration

    Swift

    public var didSelectHandler: (() -> (Void))? { get set }
  • Sets background color of the header content

    Declaration

    Swift

    @nonobjc
    public func setBackgroundColor(_ color: UIColor)

    Parameters

    color

    set to header content backgroundColor