title: Xcode8: Usage of image literals in frameworks
body: <p>I am currently updating a project to use <code>image literals</code>, to enjoy the benefits of non-optional images. The project is importing various frameworks, and the frameworks are containing images. </p>
  
  <p>In the frameworks, we had to declare an extension on <code>UIImage</code> to override the initialiser, because it was looking for the image in the wrong bundle. We did something like:</p>
  
  <pre><code>extension UIImage {   
      convenience init?(framework_named imageName: String) {
          let bundle = Bundle(for: ClassNameInFramework.self)
          self.init(named: imageName, in: bundle, compatibleWith: nil)
      }
  }
  </code></pre>
  
  <p>I am wanting to use image literals in the framework too, but like before, the literals are looking for the wrong bundle for the image and the <strong>application crashes</strong>.</p>
  
  <p>Does anyone know, how to specify the image literal to which bundle to look for the image?</p>