Post

Replies

Boosts

Views

Activity

Comment on SwiftData superclass prevents usage of ID
Not exactly sure what you mean with proper relationship, could you elaborate here? Using [Asset] will prevent the .dragContainer modifier from working to my understanding, as it expects a transferable item type and likewise an array of the Item.ID that matches the item type for selection. https://developer.apple.com/documentation/swiftui/view/dragcontainer(for:in:selection:_:)
Jun ’25
Comment on SwiftData superclass prevents usage of ID
Not exactly sure what you mean with proper relationship, could you elaborate here? Using [Asset] will prevent the .dragContainer modifier from working to my understanding, as it expects a transferable item type and likewise an array of the Item.ID that matches the item type for selection. https://developer.apple.com/documentation/swiftui/view/dragcontainer(for:in:selection:_:)
Jun ’25
Comment on SwiftData superclass prevents usage of ID
Not exactly sure what you mean with proper relationship, could you elaborate? Using [Asset] for selection will not work with .dragContainer modifier, as it requires passing in Array of ID's that match the Item type argument, to my understanding. https://developer.apple.com/documentation/swiftui/view/dragcontainer(for:in:selection:_:)
Jun ’25
Comment on SwiftData superclass prevents usage of ID
Not exactly sure what you mean with proper relationship, could you elaborate here? Using [Asset] will prevent the .dragContainer modifier from working to my understanding, as it expects a transferable item type and likewise an array of the Item.ID that matches the item type for selection. https://developer.apple.com/documentation/swiftui/view/dragcontainer(for:in:selection:_:)
Replies
Boosts
Views
Activity
Jun ’25
Comment on SwiftData superclass prevents usage of ID
Not exactly sure what you mean with proper relationship, could you elaborate here? Using [Asset] will prevent the .dragContainer modifier from working to my understanding, as it expects a transferable item type and likewise an array of the Item.ID that matches the item type for selection. https://developer.apple.com/documentation/swiftui/view/dragcontainer(for:in:selection:_:)
Replies
Boosts
Views
Activity
Jun ’25
Comment on SwiftData superclass prevents usage of ID
Not exactly sure what you mean with proper relationship, could you elaborate? Using [Asset] for selection will not work with .dragContainer modifier, as it requires passing in Array of ID's that match the Item type argument, to my understanding. https://developer.apple.com/documentation/swiftui/view/dragcontainer(for:in:selection:_:)
Replies
Boosts
Views
Activity
Jun ’25