From 94d905ffc3fd2303bc42016e2a61a678ee817693 Mon Sep 17 00:00:00 2001 From: Javier Cicchelli Date: Wed, 12 Apr 2023 16:32:34 +0200 Subject: [PATCH] Defined the properties and functions to load and to retrieve data from the Persistence stack. --- .../Protocols/ViewModeling/LocationsListViewModeling.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Apps/Locations/Sources/Protocols/ViewModeling/LocationsListViewModeling.swift b/Apps/Locations/Sources/Protocols/ViewModeling/LocationsListViewModeling.swift index 40691a3..aa3a71f 100644 --- a/Apps/Locations/Sources/Protocols/ViewModeling/LocationsListViewModeling.swift +++ b/Apps/Locations/Sources/Protocols/ViewModeling/LocationsListViewModeling.swift @@ -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.Publisher { get } + var numberOfSectionsInData: Int { get } // MARK: Functions func openAddLocation() + func loadLocations() + func numberOfDataItems(in section: Int) -> Int + func dataItem(at indexPath: IndexPath) -> Location }