TableSectionHeaderFooterViewModel

public protocol TableSectionHeaderFooterViewModel : ReusableSupplementaryViewModelProtocol

Protocol that needs to be implemented by custom header footer view models.

  • The title of the header

    Declaration

    Swift

    var title: String? { get }
  • The height of the header

    Declaration

    Swift

    var height: CGFloat? { get }
  • Asks the view model to update the header/footer view with the content in the model.

    Declaration

    Swift

    func applyViewModelToView(_ view: UIView)

    Parameters

    view

    the header/footer view