Can I show expiry date and cancel button in StoreKit Views?

I am looking at StoreKit Views, new in iOS 17.

In a SubscriptionStoreView, is it possible to show the user their current subscription's renewal/expiry date, or to present a cancel button?

According to https://developer.apple.com/documentation/storekit/storebuttonkind/4203108-cancellation , storeButton for: .cancellation is "A type of button for canceling a subscription.", but actually it just shows a (X) button at the top right to dismiss the view - and this is what the WWDC video presenter (2023 session 10013) seems to believe it should do (around 28:30, "The cancellation button shows a platform-appropriate button to dismiss the view"). Is that a documentation bug?

It seems that I can show renewal/expiry dates and a cancellation button if I use AppStore.showManageSubscriptions(...). But this is rather disjointed. Shouldn't I be able to show all of this in one place? Does my UI need two separate buttons for these overlapping features? Or am I missing something?

FB13551145

I believe that I should be able to provide a custom subscription control that shows the current renewal/expiry date by creating a SubscriptionStoreControlStyle:

struct MyStyle: SubscriptionStoreControlStyle {
  func makeBody(configuration: Self.Configuration) -> some View
  {
      ...
  }
}


SubscriptionStoreView(groupID: "...")
      .subscriptionStoreControlStyle(MyStyle())

That kinda-works, but I'm stuck because the properties of the SubscriptionStoreControlStyleConfiguration type are undocumented: https://developer.apple.com/documentation/storekit/subscriptionstorecontrolstyleconfiguration

I see that the WWDC video ( https://developer.apple.com/videos/play/wwdc2023/10013 ) described the corresponding functionality for non-subscription stores in some detail, but not this feature. Maybe it's not finished yet?

It seems someone has already noticed this:

https://swiftui-lab.com/bug-watch/ : SubscriptionStoreControlStyleConfiguration has no properties, which makes public SubscriptionStoreControlStyle.makeBody useless. FB12500183

Can I show expiry date and cancel button in StoreKit Views?
 
 
Q