0

My program needs to stay on top of all programs so I use this code and have it updating every second.

view.window?.level = Int(CGShieldingWindowLevel()) + 1

Now whenever I put my mac to sleep the program goes over the sign in page. How can I avoid this problem?

Dylan
  • 13
  • 4
  • Let me know if the linked duplicate helped, otherwise I will reopen your question. – JAL Aug 18 '17 at 18:59
  • Jal It didn't work. I have issues with it. That is the code I had originally but when the computer sleeps and opens up to the sign in page it goes over the sign in page – Dylan Aug 18 '17 at 20:39
  • Sure thing, will reopen your question. – JAL Aug 18 '17 at 20:39
  • It is strange. Do you know of any way that I could minimize the app when the computer goes to sleep and then open it again when it is awake? – Dylan Aug 18 '17 at 20:42

0 Answers0