Structures
The following structures are available globally.
-
A type-erased cell view model.
See moreNote
When providing cells with mixed data types to aSectionViewModel, it is necessary to convert them toAnyCellViewModel.Declaration
Swift
public struct AnyCellViewModel : CellViewModelextension AnyCellViewModel: Equatableextension AnyCellViewModel: Hashableextension AnyCellViewModel: CustomDebugStringConvertible -
Defines various options to customize behavior of a
See moreCollectionViewDriver.Declaration
Swift
public struct CollectionViewDriverOptions : Hashable -
Represents a collection view with sections and items.
See moreDeclaration
Swift
public struct CollectionViewModel : DiffableViewModelextension CollectionViewModel: Collection, RandomAccessCollectionextension CollectionViewModel: CustomDebugStringConvertible -
Provides an “empty state” or “no content” view for the collection view.
See moreDeclaration
Swift
@MainActor public struct EmptyViewProvider -
Represents a section of items in a collection.
See moreDeclaration
Swift
public struct SectionViewModel : DiffableViewModelextension SectionViewModel: Collection, RandomAccessCollectionextension SectionViewModel: CustomDebugStringConvertible -
A type-erased supplementary view model.
See moreNote
When providing supplementary views with mixed data types to aSectionViewModel, it is necessary to convert them toAnySupplementaryViewModel.Declaration
Swift
public struct AnySupplementaryViewModel : SupplementaryViewModelextension AnySupplementaryViewModel: Equatableextension AnySupplementaryViewModel: Hashableextension AnySupplementaryViewModel: CustomDebugStringConvertible -
Describes all information needed to register a view for reuse with a
See moreUICollectionView.Declaration
Swift
public struct ViewRegistration : Hashable, Sendable
View on GitHub
Structures Reference