Post

Replies

Boosts

Views

Activity

Reply to When I pass a @Model object to another view, the compiler says that my model does not conform to protocol 'PersistentModel'
Hi! i have the same Problem with this DetailView: import SwiftUI import SwiftData struct FolderRowView: View { var item: Item var body: some View { Text(item.timestamp, format: Date.FormatStyle(date: .numeric, time: .standard)) } } #Preview { FolderRowView(item: Item(timestamp: Date())) .modelContainer(for: Item.self, inMemory: true) }
Jul ’23