Buttons
struct Buttons: View
SwiftUI Buttons
to play media
-
The observable state of the application
Declaration
Swift
var appState
-
The observable state of the scene
Declaration
Swift
var sceneState
-
Environment to open windows
Declaration
Swift
private var openWindow
-
Environment to dismiss windows
Declaration
Swift
private var dismissWindow
-
The body of the
View
Declaration
Swift
var body: some View
-
Create a media button
Declaration
Swift
private func mediaButton(url: URL, kind: Kind) -> some View
Parameters
url
The URL of the media
kind
The kind of media
Return Value
A
View
with aButton