Post

Replies

Boosts

Views

Activity

Reply to Is swiftData just not useable with large data?
Unfortunately no. Still very much waiting for solution. I have attempted running the code to save the data in a background thread. This does free up the UI but it then makes actually writing the data to the store take a very very long time. I would get 3 rows saved into database every second. but with 30k rows but at that rate it would take over 8 hours. Has to be a way. Can't think Apple would release something that's sooo bad especially when it should be built on top of something already tried and tested like Core Data.
Topic: App & System Services SubTopic: Core OS Tags:
Mar ’24
Reply to SwiftData - Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'NSFetchRequest could not locate an NSEntityDescription for entity name 'Workout
If you are trying to access the data outside a view you need to send the modelContext as a parameter. @Environment(\.modelContext) var modelContext functionToPerformActionInAStructOutideYourView(modelContext) Then in your struct func functionToPerformActionInAStructOutideYourView(_ modelContext: ModelContext){ let possiblyAFetchRequest = FetchDescriptor<Workout>(predicate: #Predicate{ ...}) do { try modelContext.fetch(possiblyAFetchRequest) } catch {} }
Mar ’24
Reply to What happens at the end of a promo code duration
ChatGPT answered for me The outcome of a yearly auto-renew subscription with a promo code in the App Store Connect (ASC) depends on the settings and policies Apple has in place for promo codes and subscriptions. Here are the general possibilities: Promo Codes for Subscriptions Promo codes can be used to provide users with a free trial or a discounted period for a subscription. After the promo code period ends, the standard subscription terms apply. Outcomes: If the promo code is for a free trial period and not for the entire subscription duration: The user gets the promo code benefit for the trial period. After the trial period ends, they are automatically renewed at the standard subscription price. If the promo code covers the entire subscription duration: At the end of the subscription period, the user is renewed at the standard subscription price (Option B). Summary Given the typical handling of promo codes in subscription services like the App Store, the correct answer is most likely: [B] renewed automatically at the actual subscription price If you want to confirm the specifics for your particular setup or check if there are any nuances in your implementation, reviewing Apple's official documentation or contacting their support might be necessary.
Jun ’24