DataType

@available(*, deprecated, message: "Renamed to `ModelCollection`. Migrate to https://github.com/stanwood/SourceModel_iOS")
public protocol DataType

DataType is an object that stores a collection of types.

See also

Type
  • Returns the number of items

    Declaration

    Swift

    var numberOfItems: Int { get }
  • Returns the number of sections

    Declaration

    Swift

    var numberOfSections: Int { get }
  • A subscript to return a type in an indexPath

    Declaration

    Swift

    subscript(indexPath: IndexPath) -> Type? { get }
  • A subscript to return a collection dataType within a section

    Declaration

    Swift

    subscript(section: Int) -> DataType { get }
  • Returns the cell type at indexPath

    Declaration

    Swift

    func cellType(forItemAt indexPath: IndexPath) -> Fillable.Type?