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
Reply to AudioToolbox
Select Target then in "General" section "Frameworks, Libraries, and Embedded Content press + and search AudioToolBox, and in file import AudioToolBox
Topic: Media Technologies SubTopic: Audio Tags:
Replies
Boosts
Views
Activity
Mar ’24
Reply to How to solve "Publishing changes from background threads is not allowed; make sure to publish values from the main thread (via operators like receive(on:)) on model updates." error?
When adding @MainActor on whole viewModel class then those messages disappearing but if those messages still are and if that @MainActor no need, then how much important those messages?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’24
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:
Replies
Boosts
Views
Activity
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.
Replies
Boosts
Views
Activity
Oct ’23
Reply to Where do I download the Playgrounds folder for the Intro to Swift?
In Book Develop in Swift Exploration 11 page, I think in every book is "Download student material"
Topic: Business & Education SubTopic: General Tags:
Replies
Boosts
Views
Activity
Sep ’23
Reply to xCode "discard all changes" removed files - need help
When you also lose files and see post which "Posted 4 years ago" with zero comments on it... sad.
Replies
Boosts
Views
Activity
Mar ’23