MusicMatchView
struct MusicMatchView: View
SwiftUI View
for syncing ratings and playcounts between Kodi and Music
-
The KodiConnector model
Declaration
Swift
private var kodi
-
The MusicMatch model
Declaration
Swift
var musicMatch: MusicMatchModel
-
The items in the table
Declaration
Swift
private var items: [MusicMatchModel.Item] = []
-
Confirmation dialog
Declaration
Swift
private var isPresentingConfirm: Bool = false
-
Sort order for the table
Declaration
Swift
private var sortOrder: [KeyPathComparator<MusicMatchModel.Item>] = [ .init(\.kodi.lastPlayed, order: SortOrder.reverse) ]
-
Undocumented
Declaration
Swift
init(kodi: KodiConnector)
-
The body of the
View
Declaration
Swift
var body: some View
-
The table of the View
Declaration
Swift
var table: some View
-
The actions of the View
Declaration
Swift
var actions: some View
-
Match the Kodi and Music songs
Declaration
Swift
private func matchSongs()
-
Sync all songs between Kodi and Music
Declaration
Swift
private func syncAllItems()