Can anyone help me in displaying the SKCloudServiceSetupViewController in SwiftUI to ask the user to subscribe to Apple Music.
Thanks!
Thanks!
Hi @Krish Shah,
Here are some pointers with links inline to help you on your task to offer users to subscribe to Apple Music in your app.
In your SwiftUI interface, you can use a UIViewControllerRepresentable instance to create and manage a UIViewController object, such as an instance of SKCloudServiceSetupViewController.
Also, make sure to present this View modally. This other forum post seems to explain how to do that in SwiftUI.
As for how to use SKCloudServiceSetupViewController, we actually have an entire article detailing how to do just that in Swift.
I hope this helps.
Best regards,
Here are some pointers with links inline to help you on your task to offer users to subscribe to Apple Music in your app.
In your SwiftUI interface, you can use a UIViewControllerRepresentable instance to create and manage a UIViewController object, such as an instance of SKCloudServiceSetupViewController.
Also, make sure to present this View modally. This other forum post seems to explain how to do that in SwiftUI.
As for how to use SKCloudServiceSetupViewController, we actually have an entire article detailing how to do just that in Swift.
I hope this helps.
Best regards,