Datasourceable

public protocol Datasourceable<Item> : Interactable

This protocol represents a datasource Interactor. Datasources are designed to provide data models to a Destination based on simple data fetches, such as requesting objects from a server for display in a navigation stack. For more information on Interactors, please see the documentation for Interactable.

Note

If you need your datasource Interactor to run in an async context, please instead conform it to the AsyncDatasourceable protocol.

  • This type represents the type of data model this datasource handles.

    Declaration

    Swift

    associatedtype Item : Hashable
  • Items contained by the datasource.

    Declaration

    Swift

    var items: [Item] { get set }