Structures
The following structures are available globally.
-
A type-erased cell view model.
Note
When providing cells with mixed data types to aSectionViewModel
, it is necessary to convert them toAnyCellViewModel
.Declaration
Swift
public struct AnyCellViewModel : CellViewModel
extension AnyCellViewModel: Equatable
extension AnyCellViewModel: Hashable
extension 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 : DiffableViewModel
extension CollectionViewModel: Collection, RandomAccessCollection
extension 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 : DiffableViewModel
extension SectionViewModel: Collection, RandomAccessCollection
extension SectionViewModel: CustomDebugStringConvertible
-
A type-erased supplementary view model.
Note
When providing supplementary views with mixed data types to aSectionViewModel
, it is necessary to convert them toAnySupplementaryViewModel
.Declaration
Swift
public struct AnySupplementaryViewModel : SupplementaryViewModel
extension AnySupplementaryViewModel: Equatable
extension AnySupplementaryViewModel: Hashable
extension AnySupplementaryViewModel: CustomDebugStringConvertible
-
Describes all information needed to register a view for reuse with a
See moreUICollectionView
.Declaration
Swift
public struct ViewRegistration : Hashable, Sendable