0 Replies
      Latest reply on Oct 25, 2019 6:06 AM by ben_singaccord
      ben_singaccord Level 1 Level 1 (0 points)

        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?