FileBrowser
class FileBrowser
The observable FileBrowser
class
-
The list of songs
Declaration
Swift
var songList: [SongItem] = []
-
The list of artists
Declaration
Swift
var artistList: [ArtistItem] = []
-
The name of the folder bookmark
Declaration
Swift
static let folderBookmark: String = "SongsFolder"
-
The name of the export bookmark
Declaration
Swift
static let exportBookmark: String = "ExportFolder"
-
The message of the folder selector
Declaration
Swift
static let message: String = "Select the folder with your songs"
-
The label for the confirmation button of the folder selector
Declaration
Swift
static let confirmationLabel = "Select"
-
The optional songs folder
Declaration
Swift
var songsFolder: URL?
-
The status
Declaration
Swift
var status: AppError = .unknownStatus
-
The list of open windows
Declaration
Swift
var openWindows: [NSWindow.WindowItem] = []
-
The MenuBarExtra window
Note
Needed to close the MenuBarExtra when selecting a songDeclaration
Swift
var menuBarExtraWindow: NSWindow?
-
Init the FileBrowser
Declaration
Swift
init()
-
Folder Selector
Declaration
Swift
var folderSelector: some View
-
Folder Selector
See moreDeclaration
Swift
private struct FolderSelector: View