2023-04-11 19:20:25 +02:00
|
|
|
//
|
|
|
|
// LocationsListViewModel.swift
|
|
|
|
// Locations
|
|
|
|
//
|
|
|
|
// Created by Javier Cicchelli on 11/04/2023.
|
|
|
|
// Copyright © 2023 Röck+Cöde. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
import Combine
|
|
|
|
import Core
|
|
|
|
|
2023-04-11 21:36:16 +02:00
|
|
|
class LocationsListViewModel: ObservableObject, LocationsListViewModelable {
|
|
|
|
|
2023-04-11 19:20:25 +02:00
|
|
|
// MARK: Properties
|
|
|
|
|
2023-04-11 21:36:16 +02:00
|
|
|
weak var coordinator: LocationsListCoordinable?
|
2023-04-11 19:20:25 +02:00
|
|
|
|
|
|
|
// MARK: Initialisers
|
|
|
|
|
2023-04-11 21:36:16 +02:00
|
|
|
init(coordinator: LocationsListCoordinable) {
|
2023-04-11 19:20:25 +02:00
|
|
|
self.coordinator = coordinator
|
|
|
|
}
|
2023-04-11 21:36:16 +02:00
|
|
|
|
|
|
|
// MARK: Functions
|
|
|
|
|
|
|
|
func addLocationPressed() {
|
|
|
|
coordinator?.showAddLocation()
|
|
|
|
}
|
2023-04-11 19:20:25 +02:00
|
|
|
|
|
|
|
}
|