Defined the properties and functions to load and to retrieve data from the Persistence stack.

This commit is contained in:
Javier Cicchelli 2023-04-12 16:32:34 +02:00
parent 8c50ce3653
commit 94d905ffc3

View File

@ -8,6 +8,7 @@
import Combine
import Foundation
import Persistence
protocol LocationsListViewModeling: AnyObject {
@ -16,9 +17,13 @@ protocol LocationsListViewModeling: AnyObject {
var coordinator: LocationsListCoordination? { get set }
var viewStatusPublisher: Published<LocationsListViewStatus>.Publisher { get }
var numberOfSectionsInData: Int { get }
// MARK: Functions
func openAddLocation()
func loadLocations()
func numberOfDataItems(in section: Int) -> Int
func dataItem(at indexPath: IndexPath) -> Location
}