Is it possible to take a screenshot programmatically of the desktop on mac using Swift 3? I can\'t find a single thread or forum post about the topic, not even in apple\'s o
let displayID = CGMainDisplayID() let imageRef = CGDisplayCreateImage(displayID)