SwiftUI + Preview #420

Closed
opened 2025-12-29 15:31:27 +01:00 by adam · 1 comment
Owner

Originally created by @martres on GitHub (Aug 23, 2023).

Hello,

How can I "mock" CoreStoreObject to be used in PreviewProvider for example

Every time, I try to init CoreStoreObject and just bind values without needed to save to disk, I got an assert

Originally created by @martres on GitHub (Aug 23, 2023). Hello, How can I "mock" CoreStoreObject to be used in PreviewProvider for example Every time, I try to init CoreStoreObject and just bind values without needed to save to disk, I got an assert
adam closed this issue 2025-12-29 15:31:27 +01:00
Author
Owner

@martres commented on GitHub (Aug 23, 2023):

Ok I found a solution

Override each property by subclassing the CoreStoreObject

@martres commented on GitHub (Aug 23, 2023): Ok I found a solution Override each property by subclassing the CoreStoreObject
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/CoreStore#420