Implemented the dismissal of the LocationsAddCoordinator coordinator.
This commit is contained in:
parent
1683347c1a
commit
fa6ae4863e
@ -38,4 +38,12 @@ class LocationsAddCoordinator: Coordinator {
|
||||
|
||||
// MARK: - LocationsAddCoordination
|
||||
|
||||
extension LocationsAddCoordinator: LocationsAddCoordination {}
|
||||
extension LocationsAddCoordinator: LocationsAddCoordination {
|
||||
|
||||
// MARK: Functions
|
||||
|
||||
func closeAddLocation() {
|
||||
router.dismiss(animated: true)
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -6,4 +6,10 @@
|
||||
// Copyright © 2023 Röck+Cöde. All rights reserved.
|
||||
//
|
||||
|
||||
protocol LocationsAddCoordination: AnyObject {}
|
||||
protocol LocationsAddCoordination: AnyObject {
|
||||
|
||||
// MARK: Functions
|
||||
|
||||
func closeAddLocation()
|
||||
|
||||
}
|
||||
|
@ -53,6 +53,8 @@ extension LocationsAddViewModel: LocationsAddViewModeling {
|
||||
latitude: location.latitude,
|
||||
longitude: location.longitude
|
||||
)
|
||||
|
||||
coordinator?.closeAddLocation()
|
||||
}
|
||||
|
||||
func setLocation(latitude: Float, longitude: Float) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user