Last active
April 27, 2020 09:52
-
-
Save mhdhejazi/27d5d6da8a84f665cc6381998868b622 to your computer and use it in GitHub Desktop.
Enter fullscreen in a Mac Catalyst app with the help of Dynamic (https://github.com/mhdhejazi/Dynamic)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// macOS App | |
NSApplication.shared | |
.windows.first? | |
.toggleFullScreen(nil) | |
// Mac Catalyst (with Dynamic) | |
Dynamic.NSApplication.sharedApplication | |
.windows.firstObject | |
.toggleFullScreen(nil) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment