Created
May 4, 2019 11:08
-
-
Save hechen/187b8d1f5dea0cf6f43e301539720ab7 to your computer and use it in GitHub Desktop.
toggleDock2
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
func toggleDock2(show: Bool) -> Bool { | |
return show ? NSApp.setActivationPolicy(.regular) : NSApp.setActivationPolicy(.accessory) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment