_MusicKit_SwiftUI is a cross-import overlay that provides SwiftUI views for MusicKit, such as displaying a music item's artwork image, on iOS, macOS, tvOS, watchOS, and visionOS. Use it to present music content within a SwiftUI interface, including surfacing a MusicSubscriptionOffer to prompt a listener to subscribe. Adopt the PickableMusicItem protocol to let people select music items through SwiftUI.
Music Subscription 1
Present an offer that prompts a listener to subscribe to Apple Music.
- StMusicSubscriptionOfferA type for grouping other types for showing subscription offers
Selecting Music Items 1
Let people choose music items through SwiftUI interfaces.
- PrPickableMusicItemA protocol for the MusicKit item type that can be selected in the music picker.
Structures 1
- StArtworkImageiOS 15.0+A view that displays the image for a music item’s artwork.
Extends 4
MusicVideoSongTrackView