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
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:
Replies
Boosts
Views
Activity
Mar ’24
Reply to Show keyboard on button action
I have tried but as the visw isn’t yet in view setting its focus state remains false.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
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 {} }
Replies
Boosts
Views
Activity
Mar ’24
Reply to ITMS-90714: Invalid binary - The app contains one or more corrupted binaries. Please rebuild the app and resubmit.
Yeah there is check out this Sean Allen video I cant link to it directly https://youtu.be/T6IvImk66m8
Replies
Boosts
Views
Activity
May ’24
Reply to Can i have new in-app products in my app without submitting the new build version?
As long as your app has logic to handle the purchases and product IDs
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
May ’24
Reply to Deep Link to Files app
FB14031815
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’24
Reply to @Environment(\.openURL) private var openURL not working iOS 18
another post somewhere on the net has said its deprecated. Replaced it with UIApplication.shared.open(myURL) and now works.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’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.
Replies
Boosts
Views
Activity
Jun ’24