title: How to display https image from HTML content in UITextView?
body: <p>I current load html content (from JSON WS) inside TextView with this code :</p>
  
  <pre><code>if let stringHTML = contentHTML.data(using: String.Encoding.unicode, allowLossyConversion: true) {
  
      do {
          let attrStr = try NSMutableAttributedString(
              data: stringHTML,
              options: [NSDocumentTypeDocumentAttribute: NSHTMLTextDocumentType],
              documentAttributes: nil)
  
          attrStr.enumerateAttribute(NSAttachmentAttributeName, in: NSMakeRange(0, attrStr.length), options: .init(rawValue: 0), using: { (value, range, stop) in
              if let attachement = value as? NSTextAttachment {
                  let image = attachement.image(forBounds: attachement.bounds, textContainer: NSTextContainer(), characterIndex: range.location)!
                  let screenSize: CGRect = UIScreen.main.bounds
                  if image.size.width &gt; screenSize.width-20 {
                      let newImage = image.resizeImage(scale: (screenSize.width-2)/image.size.width)
                      let newAttribut = NSTextAttachment()
                      newAttribut.image = newImage
                      attrStr.addAttribute(NSAttachmentAttributeName, value: newAttribut, range: range)
                  }
              }
          })
  
          contentTextView.attributedText = attrStr
      } catch _ {
          contentTextView.text = ""
      }
  }
  </code></pre>
  
  <p>This work correctly with http image but not for https.
  I have set NSAllowsArbitraryLoads to true in my info.plist :</p>
  
  <pre><code>&lt;key&gt;NSAppTransportSecurity&lt;/key&gt;
  &lt;dict&gt;
      &lt;key&gt;NSAllowsArbitraryLoads&lt;/key&gt;
      &lt;true/&gt;
  &lt;/dict&gt;
  </code></pre>
  
  <p>But not display https images.
  The https image can be display in browser but certificat is untrusted. How can I allow untrusted https certificat?
  Any idea?</p>