SidebarView

struct SidebarView : View

SwiftUI View for the sidebar (macOS + iOS)

Note

tvOS has its own View
  • The KodiConnector model

    Declaration

    Swift

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

    Declaration

    Swift

    @Environment
    private var scene: SceneState { get }
  • The search query

    Note

    This is here to show or hide the ‘search’ menu item

    Declaration

    Swift

    @Binding
    var searchField: String { get nonmutating set }
  • The current selection in the SidebarView

    Declaration

    Swift

    @State
    private var sidebarSelection: Router? { 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

    @ViewBuilder
    var content: some View { get }
  • SwiftUI View for an item in the sidebar

    Declaration

    Swift

    private func sidebarItem(router: Router) -> some View

    Parameters

    router

    The Router item

    Return Value

    A SwiftUI View with the sidebar item