Question: I want to change isIdleTimerDisabled when a specific view appears. In SwiftUI I use .onAppear { UIApplication.shared.isIdleTimerDisabled = true } .onDisappear { UIApplication.shared.isIdleTimerDisabled = false } but even with import UIKit I get the warning “Cannot find ‘UIApplication’ in ...