title: Swift UIApplication not in scope
body: <p>I want to change isIdleTimerDisabled when a specific view appears. In SwiftUI I use
  <code>.onAppear { UIApplication.shared.isIdleTimerDisabled = true } .onDisappear { UIApplication.shared.isIdleTimerDisabled = false }</code>
  but even with <code>import UIKit</code> I get the warning &quot;Cannot find 'UIApplication' in scope&quot;. How can I fix that? I didn't find a solution after searching for more than an hour.</p>