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
ViewDeclaration
Swift
var body: some View -
Create a media button
Declaration
Swift
private func mediaButton(url: URL, kind: Kind) -> some ViewParameters
urlThe URL of the media
kindThe kind of media
Return Value
A
Viewwith aButton
View on GitHub