Post

Replies

Boosts

Views

Activity

Comment on Slightly weird SwiftData issue relating to background context inserts on a unrelated line of code
@Claude31 The purpose is to give the view a separate model to edit so no changes are made to the original until the user presses a "done" button. At that point, the original is updated and the context is saved. I used to do it differently, however, SwiftData doesn't always behave how you expect it to and I remember having some issues. Yes, mileageHistory is an array of Mileage. I'll update the post to have more information on the Vehicle structure.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Apr ’24
Comment on CloudKit Console: Can't access private database
Yes I've tried that. Same issue. I tried again today as well.
Replies
Boosts
Views
Activity
Nov ’24
Comment on SwiftData: Failed to decode a composite attribute
I'm not sure setting an ID would work in this case since it just can't seem to decode Credit to credit, but another user also suggested a migration plan. I'll look into that. Thanks.
Replies
Boosts
Views
Activity
Nov ’24
Comment on SwiftData: Failed to decode a composite attribute
Thank you for your reply. I'll look into those.
Replies
Boosts
Views
Activity
Nov ’24
Comment on SwiftData: Failed to decode a composite attribute
Thanks for your reply. That's a good way to do it.
Replies
Boosts
Views
Activity
Nov ’24
Comment on MacOS SwiftUI: Back button in NavigationSplitView detail view
Thanks. Yea I don't have it there at the moment, but it doesn't see to make much of a difference anyways. Either way, I figured out how to do what I wanted to do. I'm going to post the code for it.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’24
Comment on MacOS SwiftUI: Is it impossible to clear a Table selection?
That did it. I figured if I didn't want to select multiple, I could just use the UUID without using the set. I did have to adjust other parts of my code to get the navigationDestination to work though. I'll post that code as a comment.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’24
Comment on SwiftUI Charts not working in Xcode 16 Beta 2
I ended up reverting back to MacOS 15 to use the stable release of Xcode.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’24
Comment on SwiftData and CloudKit
Was able to confirm that there is no lag with 17.6.1 as well.
Replies
Boosts
Views
Activity
Sep ’24
Comment on Slightly weird SwiftData issue relating to background context inserts on a unrelated line of code
@Claude31 The purpose is to give the view a separate model to edit so no changes are made to the original until the user presses a "done" button. At that point, the original is updated and the context is saved. I used to do it differently, however, SwiftData doesn't always behave how you expect it to and I remember having some issues. Yes, mileageHistory is an array of Mileage. I'll update the post to have more information on the Vehicle structure.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’24