Fix settings page dismissing immediately by replacing multiple isPresented navigation destinations with value-based NavigationPath

The settings view was being popped immediately after push because multiple
navigationDestination(isPresented:) modifiers on the same view caused SwiftUI
to reset bindings when appState published changes. Replaced with a single
navigationDestination(for: SidebarDestination.self) using an explicit
NavigationStack(path:). Also fixed @ObservedObject -> @StateObject on
SettingsView.ViewModel, added AllRecipesListView/AllRecipesCategoryCardView,
and added translations for new strings.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-15 02:20:38 +01:00
parent c8ddb098d1
commit 6824dbea6b
6 changed files with 439 additions and 83 deletions

View File

@@ -583,6 +583,28 @@
}
}
},
"All Recipes" : {
"localizations" : {
"de" : {
"stringUnit" : {
"state" : "translated",
"value" : "Alle Rezepte"
}
},
"es" : {
"stringUnit" : {
"state" : "translated",
"value" : "Todas las recetas"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "Toutes les recettes"
}
}
}
},
"An HTML parsing and web scraping library for Swift. Used for importing schema.org recipes from websites." : {
"localizations" : {
"de" : {
@@ -2577,6 +2599,28 @@
}
}
},
"No recipes found" : {
"localizations" : {
"de" : {
"stringUnit" : {
"state" : "translated",
"value" : "Keine Rezepte gefunden"
}
},
"es" : {
"stringUnit" : {
"state" : "translated",
"value" : "No se encontraron recetas"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "Aucune recette trouvée"
}
}
}
},
"No results found" : {
"comment" : "A message indicating that no recipes were found for the current search query.",
"isCommentAutoGenerated" : true,