Post

Replies

Boosts

Views

Activity

Comment on StoreKit 2: how can we test Family Sharing?
Thanks, I'll have a look! Basically, I want to show in my app if a user is already subscribed to the individual plan or the family plan, and in the case of the family plan, if he's the owner or not. In the case where a user is subscribed twice, when using the status Instance Property on Product.SubscriptionInfo, we will have at least two statuses. It's our job to make sure we offer the higher level of service. But are all the information provided in a single status specific to a subscription? For example, are the renewalInfo related to the individual plan or the family plan? Can we know that? Same for the transaction in the https://developer.apple.com/documentation/storekit/product/subscriptioninfo/status/3822294-renewalinfo? Also, it seems possible to access the latestTransaction for the individual product and also the latestTransaction for the family product.
Topic: App & System Services SubTopic: StoreKit Tags:
Dec ’21
Comment on StoreKit 2: does Transaction.currentEntitlements also provide transactions for subscriptions shared with me?
Thanks. In my app, I want to display the current plan the user is entitled to. So if someone is sharing a subscription with him, but he also purchased a subscription, I need to know that and inform the user that he should consider cancelling its own subscription because he already has access to a higher level of service from a shared purchase.
Topic: App & System Services SubTopic: StoreKit Tags:
Dec ’21
Comment on StoreKit 2: does Transaction.currentEntitlements provide transactions for .inGracePeriod subscriptions?
So if grace period is enabled, Transaction.currentEntitlements includes the subscription in grace period, correct? Is there a way to test that in a testing environment (Xcode or Sandbox) or is it only possible to know in the production environment (hard to test if we need to put our App Store account in a grace period state)?
Topic: App & System Services SubTopic: StoreKit Tags:
Dec ’21
Comment on Export Localizations vs Swift Packages
Hello, I'm trying to follow this workaround to have my strings in my packages exported in a xliff file but I'm not sure about the steps you mention. Do we have to perform all of them or do they all make the same? Can you please give more details about each step (like what genstrings command to use for a given package, how to add the dummy framework to the project, what all Localizable.strings files refer to, etc.). Maybe you can add some images to show the project configuration. Thanks!
Feb ’22
Comment on SwiftUI: Fatal error: No ObservableObject of type * found. A View.environmentObject(_:) for * may be missing as an ancestor of this view.
The TagView can only be accessed from a PostView where the post is in the environment (because it's the purpose of the PostView to display the Post and details about it). So why isn't the Post obiect available from the Environment in the context of the TagView if I push a View from this PostView?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jun ’22
Comment on In Swift, how can I get the "last Sunday of a month before the current date"?
@eskimo I don’t think it is documented so I guess this is not supported. But I would have found useful in situations like these where you want to count backwards. When we create EKRecurrenceRule, we can use negative setPositions: Negative values indicate counting backwards from the end of the recurrence rule’s frequency (week, month, or year).. This is the equivalent to rrule bySetPos.
Topic: App & System Services SubTopic: General Tags:
Dec ’23
Comment on SwiftData does not work on a background Task even inside a custom ModelActor.
Can you share how you create this ProjectRepository actor in your project? The ModelActor macro is an easier way to write the boilerplate code you added to your actor (modelExecutor and modelContainer variables).I played with a custom ModelActor or a @ModelActor, and both needs to be created from within a detached Task if we want the actor to perform outside of the main queue. If they are created from within a Task, the context is using the main thread and the actor performs on the main queue.
Oct ’24