CollectionSupplementaryViewModel

public protocol CollectionSupplementaryViewModel : ReusableSupplementaryViewModelProtocol

View model for supplementary views in collection views.

  • viewInfo Default implementation

    Metadata for this supplementary view.

    Default Implementation

    Default implementation, returns nil.

    Declaration

    Swift

    var viewInfo: SupplementaryViewInfo? { get }
  • height Default implementation

    Height of this supplementary view.

    Default Implementation

    Default implementation, returns nil.

    Declaration

    Swift

    var height: CGFloat? { get }
  • Asks the supplementary view model to update the UICollectionReusableView with the content in the model and return the updated view.

    Declaration

    Swift

    func applyViewModelToView(_ view: UICollectionReusableView)

    Parameters

    view

    the view which’s content need to be update.