MusicMatchView

struct MusicMatchView : View

SwiftUI View for syncing ratings and playcounts between Kodi and Music

  • The KodiConnector model

    Declaration

    Swift

    @EnvironmentObject
    var kodi: KodiConnector { get }
  • The MusicMatch model

    Declaration

    Swift

    @StateObject
    var musicMatch: MusicMatchModel { get }
  • The items in the table

    Declaration

    Swift

    @State
    private var items: [MusicMatchModel.Item] { get nonmutating set }
  • Confirmation dialog

    Declaration

    Swift

    @State
    private var isPresentingConfirm: Bool { get nonmutating set }
  • Sort order for the table

    Declaration

    Swift

    @State
    var sortOrder: [KeyPathComparator<MusicMatchModel.Item>] { get nonmutating set }

Body of the View

  • The body of the View

    Declaration

    Swift

    var body: some View { get }

Table of the View

  • The table of the View

    Declaration

    Swift

    var table: some View { get }

Actions of the View

  • The actions of the View

    Declaration

    Swift

    var actions: some View { get }

Private functions

  • Match the Kodi and Music songs

    Declaration

    Swift

    private func matchSongs()
  • Sync all songs between Kodi and Music

    Declaration

    Swift

    private func syncAllItems()