Implemented the dismissal of the LocationsAddCoordinator coordinator.

This commit is contained in:
Javier Cicchelli 2023-04-12 21:41:30 +02:00
parent 1683347c1a
commit fa6ae4863e
3 changed files with 18 additions and 2 deletions

View File

@ -38,4 +38,12 @@ class LocationsAddCoordinator: Coordinator {
// MARK: - LocationsAddCoordination
extension LocationsAddCoordinator: LocationsAddCoordination {}
extension LocationsAddCoordinator: LocationsAddCoordination {
// MARK: Functions
func closeAddLocation() {
router.dismiss(animated: true)
}
}

View File

@ -6,4 +6,10 @@
// Copyright © 2023 Röck+Cöde. All rights reserved.
//
protocol LocationsAddCoordination: AnyObject {}
protocol LocationsAddCoordination: AnyObject {
// MARK: Functions
func closeAddLocation()
}

View File

@ -53,6 +53,8 @@ extension LocationsAddViewModel: LocationsAddViewModeling {
latitude: location.latitude,
longitude: location.longitude
)
coordinator?.closeAddLocation()
}
func setLocation(latitude: Float, longitude: Float) {