Protocols
The following protocols are available globally.
-
Conforming objects are responsible for handling various cell events.
See moreDeclaration
Swift
@MainActor public protocol CellEventCoordinator : AnyObject
-
Defines a view model that describes and configures a cell in the collection view.
See moreDeclaration
Swift
@MainActor public protocol CellViewModel : DiffableViewModel, ViewRegistrationProvider
-
Describes a view model that is uniquely identifiable and diffable.
See moreDeclaration
Swift
@MainActor public protocol DiffableViewModel : Hashable, Identifiable
-
Defines a view model that describes and configures a footer view for a section in the collection view.
See moreDeclaration
Swift
@MainActor public protocol SupplementaryFooterViewModel : SupplementaryViewModel
-
Defines a view model that describes and configures a header view for a section in the collection view.
See moreDeclaration
Swift
@MainActor public protocol SupplementaryHeaderViewModel : SupplementaryViewModel
-
Defines a view model that describes and configures a supplementary view in a collection.
See moreDeclaration
Swift
@MainActor public protocol SupplementaryViewModel : DiffableViewModel, ViewRegistrationProvider
-
Provides registration information for a reusable view in a
See moreUICollectionView
.Declaration
Swift
@MainActor public protocol ViewRegistrationProvider