Debugging NSUserActivity in SwiftUI can be painful—failures are silent and timing is unpredictable.
There's a hidden flag that helps: _defaultSwiftUIActivityEnvironmentLoggingEnabled
See more info on https://kyleye.top/tips/swiftui-useractivity-debug-logging/ #SwiftUI
Debug NSUserActivity in SwiftUI with Hidden Logging Flag | 知阅百微 见微知著

Enable _defaultSwiftUIActivityEnvironmentLoggingEnabled to debug Handoff, Spotlight, and userActivity issues

知阅百微 见微知著