Post

Replies

Boosts

Views

Activity

Reply to How to change from non-versioned to versioned schema in swiftdata?
Have you tried creating a first schema (version 1) having the model identical to your non-versioned model? Then create a second schema with the updated version of your model. I was thinking about the same stuff before publishing the app. It was approved but I rejected it thinking about what would happen if I want to migrate my SwiftData database to a new version without having an initial schema..
Nov ’24
Reply to HKObserverQuery BackgroundDelivery not executed
I am trying to use this background delivery feature on iOS17.3 for HKObjectType.workoutType() and as far as I know the frequency should be immediate for this. As a result, sometimes it is working fine, sometimes does not. When running the app on the device from xcode, it always works, but when opening it directly on the device, like any other app, it rarely works.
Topic: App & System Services SubTopic: Core OS Tags:
Feb ’24
Reply to SwiftData Migration: Keeps failing at the end of willMigrate
Same issue for me. I am adding a new property to my only V2 model and lightweight migration works just fine, but I need a custom one to replace the default value of my new property with something custom based on old V1 model properties. Did you find any solution?
Replies
Boosts
Views
Activity
Jan ’25
Reply to How to change from non-versioned to versioned schema in swiftdata?
Have you tried creating a first schema (version 1) having the model identical to your non-versioned model? Then create a second schema with the updated version of your model. I was thinking about the same stuff before publishing the app. It was approved but I rejected it thinking about what would happen if I want to migrate my SwiftData database to a new version without having an initial schema..
Replies
Boosts
Views
Activity
Nov ’24
Reply to Does SubscriptionStoreView .storeButton(for:.policies) work?
Where did you add the URLs? I added both Terms of Use and Privacy Policy URLs in App Store Connect but when I tap on these buttons there were added using storeButton, same unavailable kind of page shows.
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Nov ’24
Reply to HKObserverQuery BackgroundDelivery not executed
I am trying to use this background delivery feature on iOS17.3 for HKObjectType.workoutType() and as far as I know the frequency should be immediate for this. As a result, sometimes it is working fine, sometimes does not. When running the app on the device from xcode, it always works, but when opening it directly on the device, like any other app, it rarely works.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Feb ’24
Reply to How to create a proper dropdown toolbar item in SwiftUI for macOS?
I think you should use a HStack with a Text (or Image like "gear" in your example) and another like Image(systemName: "chevron.down") to achieve this.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Dec ’23