QueueView

struct QueueView : View

SwiftUI View for the queue

  • The AppState model

    Declaration

    Swift

    @EnvironmentObject
    var appState: AppState { get }
  • The KodiPlayer model

    Declaration

    Swift

    @EnvironmentObject
    var player: KodiPlayer { get }
  • The state of loading the queue

    Declaration

    Swift

    @State
    var state: AppState.State { get nonmutating set }
  • The list of items

    Declaration

    Swift

    @State
    private var items: [any KodiItem] { get nonmutating set }
  • Animation toggle because we can’t use the items list because its a Protocol

    Declaration

    Swift

    @State
    private var animationToggle: Bool { get nonmutating set }
  • Rotate the record

    Declaration

    Swift

    @State
    private var rotate: Bool { get nonmutating set }
  • The body of the View

    Declaration

    Swift

    var body: some View { get }
  • The content of the View

    Declaration

    Swift

    var content: some View { get }
  • The list of items

    Declaration

    Swift

    @ViewBuilder
    var itemsList: some View { get }
  • Get the current playlist

    Declaration

    Swift

    @MainActor
    func getCurrentPlaylist()
  • SwiftUI View for a queue item

    Declaration

    Swift

    @ViewBuilder
    func queueItem(item: any KodiItem, single: Bool = false) -> some View

    Parameters

    item

    The KodiItem

    single

    Bool if there is only one item in the queue

    Return Value

    A View