37 lines
670 B
Swift
37 lines
670 B
Swift
|
//
|
||
|
// LocationsListViewModel.swift
|
||
|
// Locations
|
||
|
//
|
||
|
// Created by Javier Cicchelli on 11/04/2023.
|
||
|
// Copyright © 2023 Röck+Cöde. All rights reserved.
|
||
|
//
|
||
|
|
||
|
import Combine
|
||
|
import Core
|
||
|
|
||
|
class LocationsListViewModel: ObservableObject {
|
||
|
|
||
|
// MARK: Properties
|
||
|
|
||
|
weak var coordinator: LocationsListCoordination?
|
||
|
|
||
|
// MARK: Initialisers
|
||
|
|
||
|
init(coordinator: LocationsListCoordination) {
|
||
|
self.coordinator = coordinator
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
// MARK: - LocationsListViewModeling
|
||
|
|
||
|
extension LocationsListViewModel: LocationsListViewModeling {
|
||
|
|
||
|
// MARK: Functions
|
||
|
|
||
|
func openAddLocation() {
|
||
|
coordinator?.openAddLocation()
|
||
|
}
|
||
|
|
||
|
}
|