WIP - Complete App refactoring
This commit is contained in:
@@ -9,9 +9,9 @@ import Foundation
|
||||
import SwiftUI
|
||||
|
||||
// MARK: - RecipeView Tool Section
|
||||
|
||||
/*
|
||||
struct RecipeToolSection: View {
|
||||
@ObservedObject var viewModel: RecipeView.ViewModel
|
||||
@State var viewModel: RecipeView.ViewModel
|
||||
|
||||
var body: some View {
|
||||
VStack(alignment: .leading) {
|
||||
@@ -20,7 +20,7 @@ struct RecipeToolSection: View {
|
||||
Spacer()
|
||||
}
|
||||
|
||||
RecipeListSection(list: $viewModel.observableRecipeDetail.tool)
|
||||
RecipeListSection(list: $viewModel.recipe.tool)
|
||||
|
||||
if viewModel.editMode {
|
||||
Button {
|
||||
@@ -35,3 +35,5 @@ struct RecipeToolSection: View {
|
||||
|
||||
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user