Buttons
enum Buttons
Collection of SwiftUI Buttons (shared)
- The
Play
andResume
buttons between macOS and tvOS are very different and in its own file
-
The ‘play’, ‘resume’ and optional ‘played state’ buttons
See moreDeclaration
Swift
struct Player : View
-
The ‘played state’ button
See moreDeclaration
Swift
struct PlayedState : View
-
Format a label for a button
Declaration
Swift
static func formatButtonLabel( title: String, subtitle: String?, icon: String, color: Color? = nil ) -> some View
Parameters
title
The title
subtitle
The optional subtile
icon
Name of the SF symbol
color
The color for the icon
Return Value
A SwiftUI
Label
-
Button for selecting the collection style
See moreDeclaration
Swift
struct CollectionStyle : View
-
Button to go back in the navigation stack
See moreDeclaration
Swift
struct BackButton : View
-
Button, menu or picker to sort a collection
See moreDeclaration
Swift
struct CollectionSort : View