Fix id of Items, saving
This commit is contained in:
@ -2,7 +2,7 @@ import SwiftUI
|
||||
|
||||
protocol MainContentView: View {
|
||||
|
||||
associatedtype Item: Identifiable
|
||||
associatedtype Item
|
||||
|
||||
init(item: Item)
|
||||
|
||||
|
@ -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()
|
||||
}
|
||||
|
Reference in New Issue
Block a user