Basic Edit View and components

This commit is contained in:
Vicnet
2023-09-30 10:07:27 +02:00
parent d4db6fbd82
commit ee1c0d9aed
21 changed files with 485 additions and 206 deletions

View File

@@ -7,6 +7,7 @@
import Foundation
import UIKit
import SwiftUI
@MainActor class MainViewModel: ObservableObject {
@Published var categories: [Category] = []
@@ -15,7 +16,7 @@ import UIKit
private var imageCache: [Int: RecipeImage] = [:]
let dataStore: DataStore
var apiInterface: APIInterface? = nil
var apiInterface: APIController? = nil
/// The path of an image in storage
private var localImagePath: (Int, Bool) -> (String) = { recipeId, thumb in