Details
struct Details : View
SwiftUI View for details of a Movie
-
The
Movieto showDeclaration
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
MovieDeclaration
Swift
@State private var movie: Video.Details.Movie { get nonmutating set } -
Init the
ViewDeclaration
Swift
init(movie: Video.Details.Movie)
-
The body of the
ViewDeclaration
Swift
var body: some View { get } -
Update a Movie
Declaration
Swift
func update(movie: Video.Details.Movie) -> Video.Details.Movie?Parameters
movieThe current Movie
Return Value
The optional updated Movie
-
The content of the
ViewDeclaration
Swift
@ViewBuilder var content: some View { get }
-
SwiftUI
Viewfor the top of movie details -
SwiftUI
Viewfor additional movie details
-
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 }
View on GitHub
Details Structure Reference