Post

Replies

Boosts

Views

Activity

Reply to Select an object in Picker NavigationStyle
Same issue with example project from apple (https://developer.apple.com/documentation/swiftdata/adding-and-editing-persistent-data-in-your-app)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’23
Reply to SwiftData: "Illegal attempt to establish a relationship 'item' between objects in different contexts
You have to add Item to MyItem after Init: class MyItem { var name: String var item: Item? init(name: String, item: Item) { self.name = name setItem(item) } func setItem(_ item: item) { self.item = item } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’23