Getting an iOS Share/Action Extension to show up only for a single image
<p>I have an action extension in an iOS app that I only want to be available when the user is sharing a single image. The <code>NSExtension</code> key in my <code>info.plist</code> looks like this.</p>

<pre><code>&lt;key&gt;NSExtension&lt;/key&gt;
&lt;dict&gt;
    &lt;key&gt;NSExtensionAttributes&lt;/key&gt;
    &lt;dict&gt;
        &lt;key&gt;NSExtensionActivationRule&lt;/key&gt;
        &lt;dict&gt;
            &lt;key&gt;NSExtensionActivationSupportsImagesWithMaxCount&lt;/key&gt;
            &lt;integer&gt;1&lt;/integer&gt;
        &lt;/dict&gt;
    &lt;/dict&gt;
    &lt;key&gt;NSExtensionMainStoryboard&lt;/key&gt;
    &lt;string&gt;MainInterface&lt;/string&gt;
    &lt;key&gt;NSExtensionPointIdentifier&lt;/key&gt;
    &lt;string&gt;com.apple.ui-services&lt;/string&gt;
&lt;/dict&gt;
</code></pre>

<p>The only activation rule I am using is <code>NSExtensionActivationSupportsImagesWithMaxCount</code> with a value of <code>1</code>. However, the extension still shows up when sharing other things. For example, it shows up when I hit the action button in Safari.</p>

<p>In the Safari case, there is no image to be pulled out of the <code>NSExtensionContext</code>.</p>

<p>Anyone have any idea how to get my extension to <em>not</em> show up in those cases?</p>