Details

struct Details : View

SwiftUI View for details of an Episode

  • The Episode to show

    Declaration

    Swift

    let selectedEpisode: Video.Details.Episode
  • The SceneState model

    Declaration

    Swift

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

    Declaration

    Swift

    @Environment
    private var kodi: KodiConnector { get }
  • The state values of the Episode

    Declaration

    Swift

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

    Declaration

    Swift

    init(episode: Video.Details.Episode)

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

    var content: some View { get }
  • Update an Episode

    Declaration

    Swift

    func update(episode: Video.Details.Episode) -> Video.Details.Episode?

    Parameters

    episode

    The current Episode

    Return Value

    The updated Episode