topMusicVideos
TypeScriptget topMusicVideos(): (MusicItemCollection<MusicVideo>) | nullSwift declarationvar topMusicVideos: MusicItemCollection<MusicVideo>? { get }A collection of the artist’s top music videos.
struct · iOS 15.0+ · SDK 27.1
struct ArtistA music item that represents an artist.
get topMusicVideos(): (MusicItemCollection<MusicVideo>) | nullSwift declarationvar topMusicVideos: MusicItemCollection<MusicVideo>? { get }A collection of the artist’s top music videos.
get fullAlbums(): (MusicItemCollection<Album>) | nullSwift declarationvar fullAlbums: MusicItemCollection<Album>? { get }A collection of the artist’s full-release albums.
get genreNames(): (Array<string>) | nullSwift declarationvar genreNames: [String]? { get }The names of this artist’s associated genres.
get liveAlbums(): (MusicItemCollection<Album>) | nullSwift declarationvar liveAlbums: MusicItemCollection<Album>? { get }A collection of the artist’s live albums.
get description(): stringSwift declarationvar description: String { get }A textual representation of this instance. Calling this property directly is discouraged. Instead, convert an instance of any type to a string by using the `String(describing:)` initializer. This initializer works with any type, and uses the custom `description` property for types that conform to `CustomStringConvertible`: struct Point: CustomStringConvertible { let x: Int, y: Int var description: String { return "(\(x), \(y))" } } let p = Point(x: 21, y: 30) let s = String(describing: p) print(s) // Prints "(21, 30)" The conversion of `p` to a string in the assignment to `s` uses the `Point` type's `description` property.
get musicVideos(): (MusicItemCollection<MusicVideo>) | nullSwift declarationvar musicVideos: MusicItemCollection<MusicVideo>? { get }The artist’s associated music videos.
get latestRelease(): (Album) | nullSwift declarationvar latestRelease: Album? { get }The artist’s most recent album.
get editorialNotes(): (EditorialNotes) | nullSwift declarationvar editorialNotes: EditorialNotes? { get }The notes about the artist that appear in the Music catalog.
get featuredAlbums(): (MusicItemCollection<Album>) | nullSwift declarationvar featuredAlbums: MusicItemCollection<Album>? { get }A collection of featured albums of the artist.
get similarArtists(): (MusicItemCollection<Artist>) | nullSwift declarationvar similarArtists: MusicItemCollection<Artist>? { get }A collection of artists similar to this artist.
get appearsOnAlbums(): (MusicItemCollection<Album>) | nullSwift declarationvar appearsOnAlbums: MusicItemCollection<Album>? { get }A collection of albums from other artists that this artist appears on.
get debugDescription(): stringSwift declarationvar debugDescription: String { get }A textual representation of this instance, suitable for debugging. Calling this property directly is discouraged. Instead, convert an instance of any type to a string by using the `String(reflecting:)` initializer. This initializer works with any type, and uses the custom `debugDescription` property for types that conform to `CustomDebugStringConvertible`: struct Point: CustomDebugStringConvertible { let x: Int, y: Int var debugDescription: String { return "(\(x), \(y))" } } let p = Point(x: 21, y: 30) let s = String(reflecting: p) print(s) // Prints "(21, 30)" The conversion of `p` to a string in the assignment to `s` uses the `Point` type's `debugDescription` property.
get libraryAddedDate(): (globalThis.Date) | nullSwift declarationvar libraryAddedDate: Date? { get }The date when the user added the artist to the library.
get compilationAlbums(): (MusicItemCollection<Album>) | nullSwift declarationvar compilationAlbums: MusicItemCollection<Album>? { get }A collection of compilation albums that include tracks by the artist.
get featuredPlaylists(): (MusicItemCollection<Playlist>) | nullSwift declarationvar featuredPlaylists: MusicItemCollection<Playlist>? { get }A collection of the artist’s associated playlists.
get id(): MusicItemIDSwift declarationlet id: MusicItemIDThe unique identifier for the artist.
get url(): (string) | nullSwift declarationvar url: URL? { get }The URL for the artist.
get name(): stringSwift declarationvar name: String { get }The name of the artist.
get albums(): (MusicItemCollection<Album>) | nullSwift declarationvar albums: MusicItemCollection<Album>? { get }The artist’s associated albums.
get genres(): (MusicItemCollection<Genre>) | nullSwift declarationvar genres: MusicItemCollection<Genre>? { get }The artist’s associated genres.
get artwork(): (Artwork) | nullSwift declarationvar artwork: Artwork? { get }The artist artwork.
get singles(): (MusicItemCollection<Album>) | nullSwift declarationvar singles: MusicItemCollection<Album>? { get }A collection of the artist’s associated albums in the _singles_ category.
get station(): (Station) | nullSwift declarationvar station: Station? { get }The artist’s associated station.
get topSongs(): (MusicItemCollection<Song>) | nullSwift declarationvar topSongs: MusicItemCollection<Song>? { get }A collection of the artist’s top songs.
get playlists(): (MusicItemCollection<Playlist>) | nullSwift declarationvar playlists: MusicItemCollection<Playlist>? { get }The artist’s associated playlists.
No declarations were skipped in this snapshot.