AnyDiffableViewModel
public struct AnyDiffableViewModel
MARK: - DifferenceKit Helpers
Creates a type-erased Differentiable for DiffableViewModel.
These are only created internally from either TableCellViewModel
or CollectionCellViewModel
,
so that we can safely force cast the models back to those types.
-
The type-erased
DiffableViewModel
Declaration
Swift
public let model: DiffableViewModel