runModal(for:completionHandler:)
Runs the identity picker modally as a sheet attached to a specified window.
Declaration
func runModal(for window: NSWindow, completionHandler: (@Sendable (NSApplication.ModalResponse) -> Void)? = nil)func runModal(for window: NSWindow) async -> NSApplication.ModalResponseParameters
- window:
The parent window for the sheet.
- completionHandler:
The handler to run after the return value is known, but before the sheet is dismissed.