-1

I have been searching for examples on this and it probably is easy to solve. I would like my app to say 'always on', after a couple of minutes the screen grays out and then turns off but I need the app to be 'always on' until I manually minimize it or close it.

Thank you for your help,

Ignacio

Christos Koninis
  • 1,499
  • 1
  • 15
  • 28

1 Answers1

0

You should use the isIdleTimerDisabled

UIApplication.shared.isIdleTimerDisabled = true
Christos Koninis
  • 1,499
  • 1
  • 15
  • 28