Buttons

enum Buttons

Collection of SwiftUI Buttons (shared)

  • The Play and Resume buttons between macOS and tvOS are very different and in its own file

Player

  • The ‘play’, ‘resume’ and optional ‘played state’ buttons

    See more

    Declaration

    Swift

    struct Player : View

Played State

  • The ‘played state’ button

    See more

    Declaration

    Swift

    struct PlayedState : View

Play Button

  • The ‘play’ button

    See more

    Declaration

    Swift

    struct Play : View

Resume Button

  • The ‘resume’ button

    See more

    Declaration

    Swift

    struct Resume : View

Buttons

  • 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

CollectionStyle

  • Button for selecting the collection style

    See more

    Declaration

    Swift

    struct CollectionStyle : View

BackButton

  • Button to go back in the navigation stack

    See more

    Declaration

    Swift

    struct BackButton : View

CollectionSort

  • Button, menu or picker to sort a collection

    See more

    Declaration

    Swift

    struct CollectionSort : View