Post

Replies

Boosts

Views

Activity

Comment on How to subclass with SwiftData?
You can use a PersistentModel object in XCTest. You have to create a ModelContainer as a property of XCTestCase - see the default template code that is supporting the Item model. Seems you have to pretend with @MainActor. For the config enabled store in memory only. Use container.mainContext.insert() to add objects to the model.
Topic: App & System Services SubTopic: iCloud Tags:
Dec ’23
Comment on Xcode's AI not in the EU?
APFS to create a separate partition Install Sequoia in new partition Install macOS 26 Beta (enable betas) Xcode Coding Assistant works.
Replies
Boosts
Views
Activity
Jun ’25
Comment on Static property 'shared' is not concurrency-safe because it is non-isolated global shared mutable state
First suggestion seems to require an addition to the RealityKitContent > Package. ...], swiftLanguageModes: [.v5] You may need to Clean. Xcode seems to incorrectly remember all the Build fails.
Replies
Boosts
Views
Activity
Dec ’24
Comment on Static property 'shared' is not concurrency-safe because it is non-isolated global shared mutable state
It would be good if sample code was updated with version controlled embedded source so everybody could actually understand the diffs.
Replies
Boosts
Views
Activity
Dec ’24
Comment on How to subclass with SwiftData?
You can use a PersistentModel object in XCTest. You have to create a ModelContainer as a property of XCTestCase - see the default template code that is supporting the Item model. Seems you have to pretend with @MainActor. For the config enabled store in memory only. Use container.mainContext.insert() to add objects to the model.
Topic: App & System Services SubTopic: iCloud Tags:
Replies
Boosts
Views
Activity
Dec ’23