UIDocument.userActivityURLKey in MacCatalyst?

macOS 10.15 (19A602), Xcode 11.1 (11A1027)

I'm able to use UIDocument.userActivityURLKey when building for iOS.

However, when building for MacCatalyst, the compiler throws an error.

Docs for UIDocument.userActivityURLKey say it is available in macCatalyst.

However, they also list another entry for "macOS", and list

NSUserActivityDocumentURLKey
as the declaration of the key.

But when I add an #if targetEnvironment(macCatalyst) and use the macOS name, the compiler again throws an error, "Use of unresolved identifier 'NSUserActivityDocumentURLKey'"


Is there a way to reference this key in MacCatalyst?