Artist

struct Artist : View

View videos and albums for one artist

  • The name of the artist

    Declaration

    Swift

    let artist: Audio.Details.Artist
  • The KodiConnector model

    Declaration

    Swift

    @EnvironmentObject
    var kodi: KodiConnector { get }
  • The music videos to show

    Declaration

    Swift

    @State
    private var musicVideos: [any KodiItem] { get nonmutating set }
  • The current MusicVideosRouter

    Declaration

    Swift

    @Binding
    var router: Router { get nonmutating set }
  • Define the grid layout

    Declaration

    Swift

    private let grid: [GridItem]
  • The body of the View

    Declaration

    Swift

    var body: some View { get }
  • Get all items from the library

    Declaration

    Swift

    private func getItems()