iosswiftuishareios8-share-extension

Is it possible to add a custom share action to my app which is visible in another app as well?


Apps like ILovePDF, Google Chrome, and others have this feature in the 3rd row of the iOS share sheet where you can add a custom action like "Open in Chrome" and "Edit with Ilovepdf". Can anyone help me out on how to achieve this functionality?

Custom actions in iOS ShareSheet - screenshot

All the resources I've got on the internet show only the implementation of custom actions in my app's share sheet, but not in another app's.

All the articles I referred to regarding integrating custom actions, talk about integrating them within the share sheet of the app you're building and not how to show those actions in other apps' share sheet as well


Solution

  • I guess what you are looking for is an Action extension.

    See this Apple guide for details: https://developer.apple.com/library/archive/documentation/General/Conceptual/ExtensibilityPG/Action.html#//apple_ref/doc/uid/TP40014214-CH13-SW1