title: iOS AppExtension : How can I Combine NSExtensionActivationRule and NSPredicate
body: <p>I am currently developing an iOS application containing a Share extension.</p>
  
  <p>I realized that the
  <code>NSExtensionActivationSupportsImageWithMaxCount</code> key doesn't allow me to activate my Share extension on .jpeg or .png URLs ("public.image" UTI, kUTTypeImage) under Safari (ie : an imgur link).</p>
  
  <p>I can still activate and test my extension if I switch to a NSActivationRule = TRUEPREDICATE, but it is forbidden for a released app.</p>
  
  <p>I filled a bug on radar in case of it wasn't wanted (even facebook, twitter, etc... aren't activated on this URLs)</p>
  
  <p>Right now, I would like to combine the following keys and the "public.image" in a NSPredicate string as the documentation says (<a href="https://developer.apple.com/library/archive/documentation/General/Conceptual/ExtensibilityPG/ExtensionScenarios.html#//apple_ref/doc/uid/TP40014214-CH21-SW8" rel="nofollow noreferrer">https://developer.apple.com/library/archive/documentation/General/Conceptual/ExtensibilityPG/ExtensionScenarios.html#//apple_ref/doc/uid/TP40014214-CH21-SW8</a>)</p>
  
  <p>So I have to translate the keys to a UTI</p>
  
  <p>So far I have translated:<br>
   - <code>NSExtensionActivationSupportsFileWithMaxCount</code> to "public.file-url" <code>kUTTTypeFileURL</code><br>
   - <code>NSExtensionActivationSupportsMovieWithMaxCount</code> to "public.movie" <code>kUTTypeMovie</code><br>
   - <code>NSExtensionActivationSupportsText</code> to "public.text" <code>kUTTypeText</code><br>
   - <code>NSExtensionActivationSupportsWebURLWithMaxCount</code> to "public.url" <code>kUTTypeURL</code>  </p>
  
  <p>But I don't find the type translation for: </p>
  
  <ul>
  <li><code>NSExtensionActivationSupportsWebPageWithMaxCount</code>, "public.HTML" is it kUTTypeHTML ?</li>
  </ul>
  
  <p>Does somebody already used this keys inside a predicate?</p>