MovieSetView

struct MovieSetView : View

SwiftUI View for all Movies in a Movie Set (shared)

  • The movie set

    Declaration

    Swift

    let movieSet: Video.Details.MovieSet
  • The KodiConnector model

    Declaration

    Swift

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

    Declaration

    Swift

    @Environment
    private var scene: SceneState { get }
  • 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 }

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 }

Private functions

  • Get all movies from the selected set

    Declaration

    Swift

    private func getMoviesFromSet()

Movie Set Details

  • SwiftUI View for details of a MovieSet

    See more

    Declaration

    Swift

    struct Details : View

Movie Set View

  • Update a Movie Set

    Declaration

    Swift

    static func update(movieSet: Video.Details.MovieSet) -> Video.Details.MovieSet?

    Parameters

    movieset

    The current Movie Set

    Return Value

    The optional updated Movie Set

  • Define the cell parameters for a collection

    Declaration

    Swift

    static func cell(movieSet: Video.Details.MovieSet, style: ScrollCollectionStyle) -> KodiCell

    Parameters

    movie

    The movie set

    style

    The style of the collection

    Return Value

    A KodiCell