Contents

add(_:to:)

Adds an item to the end of an existing playlist.

Declaration

@discardableResult func add<MusicItemType>(_ item: MusicItemType, to playlist: Playlist) async throws -> Playlist where MusicItemType : MusicPlaylistAddable

Return Value

The updated playlist.