Post

Replies

Boosts

Views

Activity

Reply to SwiftData modelContainer Error
I had something similar and I made my attributes optional; and the error was cleared . @Model final class Item { var timestamp: Date? var title: String? var actualjournal: String? var time: String? init(timestamp: Date, title: String, actualjournal: String, time: String) { self.timestamp = timestamp self.title = title self.actualjournal = actualjournal self.time = time } }
May ’24