Play

struct Play : View

The ‘play’ button

  • The KodiItem to play

    Declaration

    Swift

    var item: any KodiItem
  • Bool if the player will be presented

    Declaration

    Swift

    @State
    private var isPresented: Bool { get nonmutating set }
  • The media item to pass to the player

    Declaration

    Swift

    private var video: MediaItem { get }
  • Open Window environment

    Declaration

    Swift

    @Environment
    var openWindow: OpenWindowAction { get }
  • The button action

    Declaration

    Swift

    private var action: () { get }
  • The button action

Body of the View

  • The body of the View

    Declaration

    Swift

    var body: some View { get }