Post

Replies

Boosts

Views

Activity

Reply to How to stop the screen from going to sleep
If you write code like that in function and then call the function? private func disableIdleTimer() { #if os(iOS) UIApplication.shared.isIdleTimerDisabled = true #elseif os(macOS) NSApplication.shared.isIdleTimerDisabled = true #endif } private func enableIdleTimer() { #if os(iOS) UIApplication.shared.isIdleTimerDisabled = false #elseif os(macOS) NSApplication.shared.isIdleTimerDisabled = false #endif } }
Topic: App & System Services SubTopic: Core OS Tags:
Nov ’23
Reply to XCode 14.2 & ios 15.8 ->
For solution like that need update DeviceSupport file in /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport DeviceSupport file possible download from https://github.com/filsv/iOSDeviceSupport#readme but for 15.8 no file yet.
Oct ’23