swiftDialog
swiftDialog copied to clipboard
Fix 561: Use dispatch queue to set max window level and add collection behavior
Fixes https://github.com/swiftDialog/swiftDialog/issues/561
This fix implements the following -
- Maximum Window Level: Using CGWindowLevelForKey(.maximumWindow) + 1 (2147483632) ensures the dialog appears above all other windows
- Deferred Application: The DispatchQueue.main.async timing ensures the window level is applied after the window is fully created
- Collection Behavior: Added .canJoinAllSpaces and .fullScreenAuxiliary for better fullscreen application compatibility
- Enhanced Activation: The improved activateDialog() function ensures proper window ordering