#NSUserActivity
Episode 245 - Back Bacon and Pineapple
#biennial #NSUserActivity #nonstop BOS–HNL Adapter recalls. #monitoringApps #KidsVParentalControls #Aperture #DockerHacked #APPLEarnings. Cost of Music Through-screen #TouchID Picks: #ClipSharing #SwiftKotlin @nsnorth
https://mtjc.fireside.fm/245
November 19, 2024 at 4:37 PM
🐛 𝐷𝑒𝑏𝑢𝑔 𝑁𝑆𝑈𝑠𝑒𝑟𝐴𝑐𝑡𝑖𝑣𝑖𝑡𝑦 𝑖𝑛 𝑆𝑤𝑖𝑓𝑡𝑈𝐼 by Kyle Ye

NSUserActivity debugging has been a black box - until now. Enable a hidden logging flag to reveal handler timing and activity updates.

#SwiftUI #Debugging

kyleye.top/tips/swiftui...
Debug NSUserActivity in SwiftUI with Hidden Logging Flag | 知阅百微 见微知著
Enable _defaultSwiftUIActivityEnvironmentLoggingEnabled to debug Handoff, Spotlight, and userActivity issues
kyleye.top
February 18, 2026 at 2:33 PM
📱 Issue #79 is out!

This week's lineup:
📦 @_𝑒𝑥𝑝𝑜𝑟𝑡𝑒𝑑 𝑣𝑠 𝑝𝑢𝑏𝑙𝑖𝑐 𝑖𝑚𝑝𝑜𝑟𝑡
🔒 𝑖𝑠𝑜𝑙𝑎𝑡𝑒𝑑(𝑎𝑛𝑦) & #𝑖𝑠𝑜𝑙𝑎𝑡𝑖𝑜𝑛
🤖 𝐴𝑔𝑒𝑛𝑡𝑖𝑐 𝑐𝑜𝑑𝑖𝑛𝑔 𝑖𝑛 𝑋𝑐𝑜𝑑𝑒
💎 𝑋𝑐𝑜𝑑𝑒 + 𝐺𝑒𝑚𝑖𝑛𝑖 𝐶𝐿𝐼
🎨 𝐵𝑟𝑎𝑛𝑑𝑖𝑛𝑔 𝑤𝑖𝑡ℎ 𝐴𝐼
💾 𝑆𝑤𝑖𝑓𝑡𝐷𝑎𝑡𝑎 𝑄𝑢𝑖𝑐𝑘𝑠𝑡𝑎𝑟𝑡
🐛 𝑁𝑆𝑈𝑠𝑒𝑟𝐴𝑐𝑡𝑖𝑣𝑖𝑡𝑦 𝐷𝑒𝑏𝑢𝑔
🛠️ 𝑋𝑐𝑜𝑑𝑒𝐵𝑢𝑖𝑙𝑑𝑀𝐶𝑃

#Swift #iOSDev

ios-newsletter.snappmobile.io/issues/2026-...
ios-newsletter.snappmobile.io
February 13, 2026 at 3:01 PM
🔍 𝘋𝘰𝘯𝘢𝘵𝘦 𝘤𝘰𝘯𝘵𝘦𝘯𝘵 𝘵𝘰 𝘚𝘱𝘰𝘵𝘭𝘪𝘨𝘩𝘵 by @createwithswift.bsky.social

Because sometimes your app wants to be found. CreateWithSwift shows how to combine CoreSpotlight with NSUserActivity.

#𝘚𝘱𝘰𝘵𝘭𝘪𝘨𝘩𝘵 #macOS
Donate content to Spotlight and open it using NSUserActivity
Learn how to expose the content of your app to Spotlight.
www.createwithswift.com
June 17, 2025 at 6:07 AM
Lijkt gekoppeld aan deze functie: developer.apple.com/documentatio...
NSUserActivity | Apple Developer Documentation
A representation of the state of your app at a moment in time.
developer.apple.com
January 15, 2025 at 2:13 PM
Yes that’s what I use to redirect the urls to the right scene. It can also tell the system which scene handles an NSUserActivity.

In my testing it doesn’t affect the default scene opened by an app intent set to foreground mode. It seems designed to only affect openURL and activities.
December 4, 2025 at 9:04 PM
oh and 3. onContinueUserActivity that the "Restoring your app state with SwiftUI" relies on to implement state restoration using NSUserActivity doesn't work for some reason (still gotta file a feedback for that one)
January 22, 2025 at 5:56 AM
i don't think this is accurate. the option it's referring to predates apple intelligence by several years and relates to NSUserActivity/SiriKit.framework
February 8, 2025 at 5:12 AM
buncha folks gonna be complaining because they turned off the "learn from this app" Siri setting that's been there for years and is responsible for the Siri/Spotlight suggestions integration of any app that intentionally sends NSUserActivity to the OS

all you did is make your phone less useful
January 15, 2025 at 1:20 AM
Original commenter here is right. This is not intrinsically for machine learning, it simply enables an app to interface with the API call used for context sensitive sharing and (iirc) Handoff. The exact Apple Developer class name is “NSUserActivity” if you’d like to do peer research on it.
January 15, 2025 at 9:49 PM
Some technical details on “NSUserActivity” and how Apple’s ecosystem uses it: developer.apple.com/documentatio...

This API call may also affect Handoff if you use that feature, but admittedly I’m not 100% sure about that.
Increasing App Usage with Suggestions Based on User Activities | Apple Developer Documentation
Provide a continuous user experience by capturing information from your app and displaying this information as proactive suggestions across the system.
developer.apple.com
January 15, 2025 at 9:07 PM
NSUserActivity is the API you’re looking for. If your app navigation is already in a model of som sort (not just a nav controller being pushed onto) it’s pretty darn easy to use and restore where a user was in the app!

developer.apple.com/documentatio...
Creating a user activity object | Apple Developer Documentation
Identify key user interactions and include the information to restore them later.
developer.apple.com
March 21, 2025 at 1:31 PM
Generally all the points of integration with the OS. There is like a dozen of features NSUserActivity is used for. UIActivity, UIApplicationShortcutAction, the remaining INIntents, and so on.
June 5, 2025 at 10:39 AM
I’m a little surprised I haven’t seen more apps update to support Siri getting content from what’s on the screen. I used Apple’s sample and it was pretty simple - stitches together Transferable and NSUserActivity with some of the new assistant macros.
developer.apple.com/documentatio...
Making onscreen content available to Siri and Apple Intelligence | Apple Developer Documentation
Enable Siri and Apple Intelligence to respond to a person’s questions and action requests for your app’s onscreen content.
developer.apple.com
January 28, 2025 at 4:07 AM
I haven't touched this at all, but I would look at the NSUserActivity API on the ViewController or its SwiftUI counterpart. As that's how it works on iOS.
June 20, 2025 at 8:02 AM
Very excited for this one - how to use the new onscreen Apple Intelligence features with Siri ✨

I'll cover AppIntent, AppEntity, NSUserActivity, the new assistant schemas and Transferable. More importantly, I'll show you how they all work together: superwall.com/blog/how-to-...
Superwall
Superwall - Paywalls made easy
superwall.com
December 3, 2024 at 9:11 PM
(*I don't remember what iOS version added NSUserActivity-based state preservation, but if I switch to Safari to Google it, I risk losing these unsent posts)
August 14, 2025 at 11:45 PM
NSUserActivity is iTunes and send post and close laptop and I will see you all tomorrow
December 11, 2024 at 12:18 AM
NSUserActivity is iTunes and send post and close laptop and I will see you all tomorrow
December 11, 2024 at 12:21 AM
NSUserActivity-based state restoration built in? I guess I can delete this repo… https://github.com/mergesort/Modem
GitHub - mergesort/Modem: A routing, serialization, and d...
A routing, serialization, and deep link handling framewor...
github.com
November 19, 2024 at 10:12 AM
NSUserActivity integration in the Reminders app is miiighty tempting. I adore using @culturedcode but being able to say “remind me about this” on a Messages thread is awesome. Does anyone maintain two Reminders lists or have any techniques or tips for doing so?
November 19, 2024 at 8:05 AM
I experimented with the idea a few years ago unifying the concepts of deep link URLs, NSUserActivity, INShortcut, UIApplicationShortcutItem, etc. But what I want is to define an Identifiable enum of my routes and add a modifier that figures the rest out....
November 18, 2024 at 9:14 AM