title: Get windows preventing sleep in swift macOS
body: <p>I'm developing a Swift application for macOS and I would like to retrieve the list of windows that are preventing Sleep. Like the column in Activity Monitor-&gt;Energy.
  Is there a way to retrieve this attribute in Swift?
  Thank you</p>