View
public extension View
-
errorAlert(message:
From Chord_Provider) Show an
Error Alert
Declaration
Swift
func errorAlert(message: Binding<AlertMessage?>) -> some View
Parameters
message
The
AlertMessage
Return Value
A SwiftUI alert with the error message
-
confirmationDialog(message:
From Chord_Provider) Show a
Confirmation Dialog
Declaration
Swift
func confirmationDialog(message: Binding<AlertMessage?>) -> some View
Parameters
message
The
AlertMessage
Return Value
A SwiftUI confirmationDialog
-
withHostingWindow(_:
From Chord_Provider) Find the NSWindow of the scene
Declaration
Swift
func withHostingWindow(_ callback: @escaping (NSWindow?) -> Void) -> some View
Parameters
callback
The optional
NSWindow
Return Value
A SwiftUI
background
View -
selectFileSheet(isPresented:
From Chord_Providerbookmark: action: ) SwiftUI
Modifier
to add aFileImporter
sheetDeclaration
Swift
func selectFileSheet( isPresented: Binding<Bool>, bookmark: CustomFile, action: @escaping () -> Void ) -> some View
Parameters
isPresented
Bool to show the sheet
bookmark
The
CustomFile
to selectaction
The action when a file is selected
Return Value
A modified
View