From 9b04d3601ca43e0ea6f63cd4faa3013522d58879 Mon Sep 17 00:00:00 2001 From: Javier Cicchelli Date: Wed, 12 Apr 2023 21:21:58 +0200 Subject: [PATCH] Defined properties and functions to the LocationsAddViewModeling protocol to support reactive updates as well as location upsert and deletion. --- .../ViewModeling/LocationsAddViewModeling.swift | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Apps/Locations/Sources/Protocols/ViewModeling/LocationsAddViewModeling.swift b/Apps/Locations/Sources/Protocols/ViewModeling/LocationsAddViewModeling.swift index b4e707c..8c26eaa 100644 --- a/Apps/Locations/Sources/Protocols/ViewModeling/LocationsAddViewModeling.swift +++ b/Apps/Locations/Sources/Protocols/ViewModeling/LocationsAddViewModeling.swift @@ -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.Publisher { get } + + // MARK: Functions + + func cleanLocation() + func saveLocation() + func setLocation(latitude: Float, longitude: Float) + }