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?
Asked
Active
Viewed 146 times
2 Answers
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

Andrea Mariotti
- 61
- 2
- 6
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