how to ignore sleep in ios programatically code example Example: how to ignore sleep in ios programatically UIApplication.shared.isIdleTimerDisabled = true