WIP - Complete App refactoring
This commit is contained in:
@@ -9,16 +9,16 @@ import Foundation
|
||||
import SwiftUI
|
||||
|
||||
// MARK: - RecipeView Keyword Section
|
||||
|
||||
/*
|
||||
struct RecipeKeywordSection: View {
|
||||
@ObservedObject var viewModel: RecipeView.ViewModel
|
||||
@State var viewModel: RecipeView.ViewModel
|
||||
let columns: [GridItem] = [ GridItem(.flexible(minimum: 50, maximum: 200), spacing: 5) ]
|
||||
|
||||
var body: some View {
|
||||
CollapsibleView(titleColor: .secondary, isCollapsed: !UserSettings.shared.expandKeywordSection) {
|
||||
Group {
|
||||
if !viewModel.observableRecipeDetail.keywords.isEmpty && !viewModel.editMode {
|
||||
RecipeListSection(list: $viewModel.observableRecipeDetail.keywords)
|
||||
if !viewModel.recipe.keywords.isEmpty && !viewModel.editMode {
|
||||
RecipeListSection(list: $viewModel.recipe.keywords)
|
||||
} else {
|
||||
Text(LocalizedStringKey("No keywords."))
|
||||
}
|
||||
@@ -189,3 +189,4 @@ struct KeywordPickerView_Previews: PreviewProvider {
|
||||
}
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user