Hi everyone.
I try to do an app without UIKit and only with SwiftUI features.
I specify to use the @main Xcode beta 12 way and not the "old" appDelegate way.
How to do ( to disable sleep screen in app ) :
on this :
Thank you.
I try to do an app without UIKit and only with SwiftUI features.
I specify to use the @main Xcode beta 12 way and not the "old" appDelegate way.
How to do ( to disable sleep screen in app ) :
Code Block UIApplication.shared.isIdleTimerDisabled = true
on this :
Code Block @main struct MyNewApp: App { var body: some Scene { Text("Hello world") } }
Thank you.