Details

struct Details : View

SwiftUI View for details of a Movie

  • The Movie to show

    Declaration

    Swift

    private let selectedMovie: Video.Details.Movie
  • The KodiConnector model

    Declaration

    Swift

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

    Declaration

    Swift

    @Environment
    private var scene: SceneState { get }
  • The state values of the Movie

    Declaration

    Swift

    @State
    private var movie: Video.Details.Movie { get nonmutating set }
  • Init the View

    Declaration

    Swift

    init(movie: Video.Details.Movie)

Body of the View

  • The body of the View

    Declaration

    Swift

    var body: some View { get }
  • Update a Movie

    Declaration

    Swift

    func update(movie: Video.Details.Movie) -> Video.Details.Movie?

    Parameters

    movie

    The current Movie

    Return Value

    The optional updated Movie

Content of the View

  • The content of the View

    Declaration

    Swift

    @ViewBuilder
    var content: some View { get }

tvOS Views

  • top

    SwiftUI View for the top of movie details

  • SwiftUI View for additional movie details

Caculated stuff

  • The cast of the Movie

    Declaration

    Swift

    var cast: String { get }
  • The plot of the Movie

    Declaration

    Swift

    var plot: String { get }
  • The details of the movie

    Declaration

    Swift

    var movieDetails: some View { get }