AudioPlayerView
struct AudioPlayerView: View
SwiftUI View
for the audio player
-
The music URL
Declaration
Swift
let musicURL: URL
-
The
AVAudioPlayer
Declaration
Swift
private var audioPlayer: AVAudioPlayer?
-
Bool if the player is playing or not
Declaration
Swift
private var isPlaying: Bool = false
-
The observable
FileBrowser
classDeclaration
Swift
private var fileBrowser
-
The status of the song
Declaration
Swift
private var status: AppError = .unknownStatus
-
The iCloud URL of the song
Declaration
Swift
private var iCloudURL: URL
-
Show an
Alert
if the music file is not foundDeclaration
Swift
private var errorAlert: AlertMessage?
-
Show an
ConfirmationDialog
if the music file is not downloadedDeclaration
Swift
private var confirmationDialog: AlertMessage?
-
Bool to show the folder selector
Declaration
Swift
private var showFolderSelector: Bool = false
-
The body of the
View
Declaration
Swift
var body: some View
-
The play button
Declaration
Swift
var playButton: some View
-
The pause button
Declaration
Swift
var pauseButton: some View