Post

Replies

Boosts

Views

Activity

Comment on Dismiss Live Activities on App Termination
Awesome! You made my day! Thanks!
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
May ’25
Comment on Error when running Live Activities
Okay, I found a way to use debug print in a Live Activity. You can need the Console.app on Mac OS and use the Logger struct in the os framework. import os let logger = Logger(OSLog(subsystem: "com.yourapp.identifier", category: "General")) logger.info("Your message to print in Console.app"
Replies
Boosts
Views
Activity
Mar ’25
Comment on Widgets & Live activities debug install dosen't work
I am answering my own comment above, but since Live Activity is its own contained process, there is no way to attach the XCode debugger to it. Nonetheless you can observe the logs from liveactivitiesd in the Console app on Mac, but that's not very useful.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Feb ’25
Comment on Error when running Live Activities
Well, I guess, now that I understand better how the Live Activity works, there is no way to attach the debugger. Live Activity is a very basic component that requires minimal computing.
Replies
Boosts
Views
Activity
Feb ’25
Comment on Widgets & Live activities debug install dosen't work
But are you able to attach the debugger to your Live Activity Scheme? Can you set breakpoints and enable the debug console?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Feb ’25
Comment on SPM show-dependencies broken
Yeah, that does the trick! Now I need to figure out how to change it on XCode Cloud.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’24
Comment on [iOS 18] UITabBarController disable new switching animation
Yeah, that's what did the trick for me!
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Oct ’24
Comment on [iOS 18] UITabBarController disable new switching animation
Wrapping tabBarController.selectedIndex = selectedIndex into UIView.performWithoutAnimation did the trick for me. UIView.performWithoutAnimation { tabBarController.selectedIndex = selectedSegmentIndex }
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Oct ’24
Comment on Crash in iOS18
Awesome! That was it! Thank you for your comment @zulfishah! Very helpful!
Topic: UI Frameworks SubTopic: UIKit
Replies
Boosts
Views
Activity
Sep ’24
Comment on Which devices to use
No, you are right. You don't need XCode Beta 13 to use the Nearby Interaction framework.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Sep ’21