CollectionSupplementaryViewModel
public protocol CollectionSupplementaryViewModel : ReusableSupplementaryViewModelProtocol
View model for supplementary views in collection views.
-
viewInfoDefault implementationMetadata for this supplementary view.
Default Implementation
Default implementation, returns
nil.Declaration
Swift
var viewInfo: SupplementaryViewInfo? { get } -
heightDefault implementationHeight of this supplementary view.
Default Implementation
Default implementation, returns
nil.Declaration
Swift
var height: CGFloat? { get } -
Asks the supplementary view model to update the
UICollectionReusableViewwith the content in the model and return the updated view.Declaration
Swift
func applyViewModelToView(_ view: UICollectionReusableView)Parameters
viewthe view which’s content need to be update.
View on GitHub
CollectionSupplementaryViewModel Protocol Reference