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
ViewDeclaration
Swift
var body: some View -
A
Viewto browse files from a user selected folderDeclaration
Swift
var browserFiles: some View -
Artists list
ViewDeclaration
Swift
var artistsList: some View -
Songs list
ViewDeclaration
Swift
var songsList: some View -
Tags list
ViewDeclaration
Swift
var tagsList: some View -
A
Viewwith a single songDeclaration
Swift
func songRow(song: FileBrowserModel.SongItem, showArtist: Bool = false) -> some ViewParameters
songThe song
showArtistBool if the artist should be shown in the row view
Return Value
A
Viewfor the song -
Create document
ViewDeclaration
Swift
var createDocument: some View -
The body of the
ViewDeclaration
Swift
var recentFiles: some View -
The body of the
ViewDeclaration
Swift
var templates: some View -
The available tabs for the
See moreWelcomeViewDeclaration
Swift
enum NewTabs: String, CaseIterable, Identifiable -
Open a song file
Declaration
Swift
func openSong(url: URL) asyncParameters
urlThe URL of the file
-
Open a new song
Declaration
Swift
func newSong(text: String, template: URL? = nil)Parameters
textThe content of the song
templateThe optional URL of the template
View on GitHub