Music Picker
Presents a music picker to select items from the Apple Music catalog and the user’s music library.
Platform Compatibility
iOS 27.0+ iPadOS 27.0+ visionOS 27.0+
Tags
SwiftUI Code
import MusicKit
@State var showMusicPicker = true
@State var selectedSongs: MusicItemCollection<Song> = []
var body: some View {
Text("Foo")
.musicPicker(
isPresented: $showMusicPicker,
title: Text("Bar"),
selection: $selectedSongs
)
}Found an issue or have a suggestion?
Created: August 23, 2026Updated: August 23, 2026