macosswiftlsuielement

Hidden Window Swift


Is there a way to make an application hidden from the user for an OS X application ( eg not being on the dock when it's open and only operating in the background). I know there is a way to make things like hidden Python windows but can I do it in swift?


Solution

  • Add a LSUIElement key to the Info.plist and set its value to 1.