PlayPause

struct PlayPause : View

Play/Pause an item in the playlist

There are a few senario’s:

  • Playlist is empty: disable this button; there is nothing to play
  • Player is paused: do method .playerPlayPause to pause
  • Player is playing: do method .playerPlayPause to play
  • Player is stopped: do method .playerOpen to start the playlist
  • Init the View

    Declaration

    Swift

    public init()
  • The body of the View

    Declaration

    Swift

    public var body: some View { get }