SearchView

struct SearchView : View

SwiftUI View for search results

  • The KodiConnector model

    Declaration

    Swift

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

    Declaration

    Swift

    @Environment
    private var scene: SceneState { get }
  • The movies to show

    Declaration

    Swift

    @State
    private var movies: [Video.Details.Movie] { get nonmutating set }
  • The Music Videos to show

    Declaration

    Swift

    @State
    private var musicVideos: [Video.Details.MusicVideo] { get nonmutating set }
  • The TV shows to show

    Declaration

    Swift

    @State
    private var tvshows: [Video.Details.TVShow] { get nonmutating set }
  • The collection in this view

    Declaration

    Swift

    @State
    private var collection: [AnyKodiItem] { get nonmutating set }
  • The sorting

    Declaration

    Swift

    @State
    private var sorting: List.Sort { get nonmutating set }
  • The loading state of the View

    Declaration

    Swift

    @State
    private var status: ViewStatus { get nonmutating set }
  • Bool if we have results

    Declaration

    Swift

    var results: Bool { get }

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 }
  • Perform the search

    Declaration

    Swift

    @MainActor
    private func search()