0

how can I check that the app or page has an image to be grabbed, and grab it to use later from an iOS Share Extension using SWIFT?

shaydawg
  • 1,193
  • 1
  • 12
  • 17

2 Answers2

0

You are thinking about this backwards, iOS will do that for you. All you can/have to do is define what you accept, see and keep in mind that by default all documents you accept have to be present at once or the share won't show up NSExtensionActivationRule

0

you can determine this using the ExtensionPreprocessingJS, in the run function

run: function(arguments) {
   arguments.completionFunction({"numberImages" : document.images.length});
 }
William Ku
  • 798
  • 5
  • 17