View
extension View
-
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 -
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
-
Show a
Confirmation Dialog
Declaration
Swift
func confirmationDialog(message: Binding<AlertMessage?>) -> some View
Parameters
message
The
AlertMessage
Return Value
A SwiftUI confirmationDialog
-
Shortcut to the
WrapSettingsSection
modifierDeclaration
Swift
var scaleModifier: some View
Parameters
title
The title
Return Value
A modified
View
-
Shortcut to the
WrapSettingsSection
modifierDeclaration
Swift
func wrapSettingsSection(title: String) -> some View
Parameters
title
The title
Return Value
A modified
View