Post

Replies

Boosts

Views

Activity

Reply to MacOs sheet not opening and application stuck
Try to replace TrainingAttendanceView with a simple view (example: Color.red) and see what happens. If the sheet opens then the problem could be with TrainingAttendanceView, begin commenting out code till you isolate the problem. If the sheet doesn't open with a simple view then the problem could be in the parent view presenting it. After isolating the problem create a project with minimum code to reproduce the issue and then post it in the forum so that others can have a look.
Aug ’24
Reply to Updating a Core Data object does not update the SwiftUI view
CoreData Use @FetchRequest to keep CoreData in sync with SwiftUI view https://developer.apple.com/wwdc21/10017?time=581 SwiftData Use Query, to keep SwiftData in sync with your SwiftUI view. Please watch the WWDC videos on SwiftData to see how it is meant to be used with SwiftUI views. Reference: https://developer.apple.com/wwdc23/10154?time=330 https://developer.apple.com/documentation/swiftdata/query https://www.hackingwithswift.com/quick-start/swiftdata/how-to-use-query-to-read-swiftdata-objects-from-swiftui
Aug ’24
Reply to Drag and Drop using SwiftUI
Just tested this on macOS 15 and seems to work fine. I am able to drag single / multiple items from a list and drop it on to a different list cell. Note: I have not tested on Could you post the minimum code so that I can try to understand what the issue is.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jul ’24
Reply to SwiftData @Query crashes when trying to filter or sort using an enum or relationship
Yes I am also facing the same issue, problem is there seems to be no way to compare enum, comparing enum always fails and comparing using rawValue crashes. Could you file a feedback, hopefully it gets fixed. https://developer.apple.com/documentation/swiftdata/preservingyourappsmodeldataacrosslaunches# claims that enum is supported however I am not sure how to get it to work.
Topic: App & System Services SubTopic: iCloud Tags:
Sep ’23
Reply to MacOs sheet not opening and application stuck
Try to replace TrainingAttendanceView with a simple view (example: Color.red) and see what happens. If the sheet opens then the problem could be with TrainingAttendanceView, begin commenting out code till you isolate the problem. If the sheet doesn't open with a simple view then the problem could be in the parent view presenting it. After isolating the problem create a project with minimum code to reproduce the issue and then post it in the forum so that others can have a look.
Replies
Boosts
Views
Activity
Aug ’24
Reply to Updating a Core Data object does not update the SwiftUI view
CoreData Use @FetchRequest to keep CoreData in sync with SwiftUI view https://developer.apple.com/wwdc21/10017?time=581 SwiftData Use Query, to keep SwiftData in sync with your SwiftUI view. Please watch the WWDC videos on SwiftData to see how it is meant to be used with SwiftUI views. Reference: https://developer.apple.com/wwdc23/10154?time=330 https://developer.apple.com/documentation/swiftdata/query https://www.hackingwithswift.com/quick-start/swiftdata/how-to-use-query-to-read-swiftdata-objects-from-swiftui
Replies
Boosts
Views
Activity
Aug ’24
Reply to Drag and Drop using SwiftUI
Just tested this on macOS 15 and seems to work fine. I am able to drag single / multiple items from a list and drop it on to a different list cell. Note: I have not tested on Could you post the minimum code so that I can try to understand what the issue is.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’24
Reply to SwiftData @Query crashes when trying to filter or sort using an enum or relationship
Yes I am also facing the same issue, problem is there seems to be no way to compare enum, comparing enum always fails and comparing using rawValue crashes. Could you file a feedback, hopefully it gets fixed. https://developer.apple.com/documentation/swiftdata/preservingyourappsmodeldataacrosslaunches# claims that enum is supported however I am not sure how to get it to work.
Topic: App & System Services SubTopic: iCloud Tags:
Replies
Boosts
Views
Activity
Sep ’23
Reply to #Predicate doesn't work with enum
I forgot to add the code for App, any help on this would be much appreciated. SwiftDataEnumDemoApp import SwiftUI import SwiftData @main struct SwiftDataEnumDemoApp: App { var body: some Scene { WindowGroup { ContentView() .modelContainer(for: Car.self) } } }
Topic: App & System Services SubTopic: iCloud Tags:
Replies
Boosts
Views
Activity
Sep ’23