I've a sandboxed app that I'd like to prevent screen sleep. I've seen this Q&A and used it's example code as well as thisStackOverflow question.
Neither seem to work. I'm building for OSX 10.13+ in Swift, but using a bridging-header for the code.
Does anyone know if there is newer methods or if the support for this has been dropped in later OSX'