Fix id of Items, saving

This commit is contained in:
Christoph Hagen
2025-06-11 08:19:44 +02:00
parent 5970ce2e9f
commit 1d0eba9d78
64 changed files with 233 additions and 217 deletions

View File

@ -2,7 +2,7 @@ import SwiftUI
protocol MainContentView: View {
associatedtype Item: Identifiable
associatedtype Item
init(item: Item)

View File

@ -12,7 +12,7 @@ struct SelectedDetailView<Contained>: View where Contained: MainContentView {
var body: some View {
if let item = selected {
Contained(item: item)
.id(item.id)
//.id(item.id)
} else {
EmptyView()
}