Defined properties and functions to the LocationsAddViewModeling protocol to support reactive updates as well as location upsert and deletion.

This commit is contained in:
Javier Cicchelli 2023-04-12 21:21:58 +02:00
parent 2783dd56d0
commit 9b04d3601c

View File

@ -6,10 +6,20 @@
// Copyright © 2023 Röck+Cöde. All rights reserved.
//
import Combine
protocol LocationsAddViewModeling: AnyObject {
// MARK: Properties
var coordinator: LocationsAddCoordination? { get set }
var locationExistsPublisher: Published<Bool>.Publisher { get }
// MARK: Functions
func cleanLocation()
func saveLocation()
func setLocation(latitude: Float, longitude: Float)
}