Creates a playlist in the user’s music library.
- Parameters:
- name: The name of the playlist.
- description: An optional description of the playlist.
- authorDisplayName: The display name of the author for the playlist.
A `nil` value will result in the framework using
your app’s name instead.
- Returns: The newly created playlist.
Edits a playlist that your app has created.
This function will throw an error if your app attempts to edit
a playlist that another app created.
- Returns: The edited playlist.
get · iOS 16.0+
shared
TypeScript
static get shared(): MusicLibrary
Swift declaration
static let shared: MusicLibrary
A shared object that allows your app to modify the user’s music library.
Skipped declarations
4 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
MusicLibrary.add(_:)
This declaration needs Swift generic type arguments. (no canonical witness for MusicItemType)
MusicLibrary.add(_:to:)
This declaration needs Swift generic type arguments. (no canonical witness for MusicItemType)