[Setup] App architecture #9

Merged
javier merged 18 commits from setup/app-architecture into main 2023-04-11 22:14:40 +00:00
2 changed files with 0 additions and 34 deletions
Showing only changes of commit 5e5653bbe2 - Show all commits

View File

@ -1,17 +0,0 @@
//
// View.swift
// Core
//
// Created by Javier Cicchelli on 11/04/2023.
// Copyright © 2023 Röck+Cöde. All rights reserved.
//
/// This protocol defines the view of the **MVVM** architecture.
public protocol View {
// MARK: Properties
/// The view model related to the view.
var viewModel: ViewModel { get set }
}

View File

@ -1,17 +0,0 @@
//
// ViewModel.swift
// Core
//
// Created by Javier Cicchelli on 11/04/2023.
// Copyright © 2023 Röck+Cöde. All rights reserved.
//
/// This protocol defines the view model of the **MVVM** architecture.
public protocol ViewModel: AnyObject {
// MARK: Properties
/// The reference to the coordinator that initialised the view model.
var coordinator: Coordinator { get set }
}