ShelfView

struct ShelfView : View

SwiftUI View for a shelf with media (shared)

  • The loading status of the View

    Declaration

    Swift

    @State
    private var status: ViewStatus { get nonmutating set }
  • The itmes to show in the shelf

    Declaration

    Swift

    @State
    private var items: [any KodiItem] { get nonmutating set }
  • The SceneState model

    Declaration

    Swift

    @Environment
    private var scene: SceneState { get }
  • The KodiConnector model

    Declaration

    Swift

    @Environment
    private var kodi: KodiConnector { get }
  • The selected media for the shelf

    Declaration

    Swift

    @AppStorage
    private var media: ShelfView.Media { get nonmutating set }

Body of the View

  • The body of the View

    Declaration

    Swift

    var body: some View { get }

Content of the View

  • The content of the View

    Declaration

    Swift

    var content: some View { get }

Shelf View

  • The media we cab show in the shelf

    See more

    Declaration

    Swift

    enum Media : String, CaseIterable
  • Get the selected media from the library

    Declaration

    Swift

    private var getMedia: [any KodiItem] { get }
  • SwiftUI Picker for the Media

    Declaration

    Swift

    var mediaPicker: some View { get }