WelcomeView
struct WelcomeView: View
SwiftUI View
for the Welcome Window
-
The observable state of the application
Declaration
Swift
var appState
-
The observable state of the file browser
Declaration
Swift
var fileBrowser
-
The currently selected tab
Declaration
Swift
private var selectedTab: NewTabs = .recent
-
Environment to open documents
Declaration
Swift
private var openDocument
-
Environment to create new documents
Declaration
Swift
private var newDocument
-
Environment to open windows
Declaration
Swift
var openWindow
-
Environment to dismiss itself
Declaration
Swift
var dismiss
-
The body of the
View
Declaration
Swift
var body: some View
-
A
View
to browse files from a user selected folderDeclaration
Swift
var browserFiles: some View
-
Artists list
View
Declaration
Swift
var artistsList: some View
-
Songs list
View
Declaration
Swift
var songsList: some View
-
Tags list
View
Declaration
Swift
var tagsList: some View
-
A
View
with a single songDeclaration
Swift
func songRow(song: FileBrowserModel.SongItem, showArtist: Bool = false) -> some View
Parameters
song
The song
showArtist
Bool if the artist should be shown in the row view
Return Value
A
View
for the song -
Create document
View
Declaration
Swift
var createDocument: some View
-
The body of the
View
Declaration
Swift
var recentFiles: some View
-
The body of the
View
Declaration
Swift
var templates: some View
-
The available tabs for the
See moreWelcomeView
Declaration
Swift
enum NewTabs: String, CaseIterable, Identifiable
-
Open a song file
Declaration
Swift
func openSong(url: URL) async
Parameters
url
The URL of the file
-
Open a new song
Declaration
Swift
func newSong(text: String, template: URL? = nil)
Parameters
text
The content of the song
template
The optional URL of the template