Apple FileProvider extention in File Application remove Copy, Duplicate operation from document browser's context menu action

后端 未结 1 446
鱼传尺愫
鱼传尺愫 2020-12-22 06:54

I want to remove Copy, Duplicate operation from document browser\'s context menu action In my code for class FileProviderItem modify property cap

相关标签:
1条回答
  • 2020-12-22 07:34

    Just to also post what I said to you in the comments, this behavior is defined by the file provider extension UI. When adding the file provider extension to the application, it adds two targets in your apps targets. If you don't want this type of functionality, then simply just remove the file provider extension UI target from your project.

    Here's an excerpt from Apple on the File Provider Extension UI:

    Use the File Provider UI extension to add custom actions to your File Provider extension. These actions appear if the user long presses an item while browsing your file provider's content. When the user selects your action, the system displays your custom user interface, where the user completes the action. After the user is finished, you must explicitly cancel or complete the action.

    https://developer.apple.com/documentation/fileproviderui

    0 讨论(0)
提交回复
热议问题