presentMultiSeatInvitationSheet(from:subscriptionGroupID:)
Presents the invitation sheet that the group purchaser uses to invite people to join a multiseat subscription.
Declaration
@MainActor static func presentMultiSeatInvitationSheet(from controller: UIViewController, subscriptionGroupID: String) async throwsParameters
- controller:
The view controller that StoreKit uses to present the sheet. The view controller needs to be in a window hierarchy.
- subscriptionGroupID:
The identifier of the subscription group that contains the multiseat subscription.
Mentioned in
Discussion
Discussion
Use this method to let the group purchaser invite people to join their multiseat subscription from within your app, for a subscription that uses Apple-hosted invitations. For a subscription that uses developer-hosted invitations, the method throws an error. The sheet handles choosing contacts and sending invitations, and your app doesn’t receive details about the invitations that the group purchaser sends.
The method completes when the sheet is dismissed. It returns normally if the group purchaser completes the invitation flow.
After a multiseat purchase, the system presents the sheet automatically unless you turn it off with multiSeatInvitationSheetSuppressed(_:). To present the sheet in SwiftUI, use the multiSeatInvitationSheet(isPresented:subscriptionGroupID:onCompletion:) view modifier.
For more information, see Supporting multiseat purchases in your app.