Thursday, May 14, 2026
HomeiOS Developmentswift - Methods to detect shut button motion for default handle subscription...

swift – Methods to detect shut button motion for default handle subscription in iOS 15?

[ad_1]

I’ve used showManageSubscriptions operate present subscription sheet with subscription choices throughout the utility however there’s a shut button within the sheet which motion shouldn’t be detected, button is clickable although.

@out there(iOS 15.0.0, *)
    func showManageSubscription(_ windowScene: UIWindowScene) async {
        do {
            strive await StoreKit.AppStore.showManageSubscriptions(in: windowScene)
            print("Sheet is closed")
        } catch {
            print("Sheet cannot be opened")
        }
    }

Please assist me to get the shut button motion.

Reference hyperlink: https://developer.apple.com/documentation/storekit/appstore/3803198-showmanagesubscriptions#parameters

Please see screenshot enter image description here

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments