title: Any way to change the background color of a #imageLiteral in Xcode?
body: <p>In Xcode it automatically replaces:</p>
  
  <pre><code>#imageLiteral(resourceName: "image_name")
  </code></pre>
  
  <p>with an inline image, which is convenient for visualizing images in code.</p>
  
  <p>But if the image is <em>white</em> (as is quite common in Xcode projects, I assume), and your code window's background is <em>white</em>, you simply cannot see the image and it looks something like this:</p>
  
  <pre><code>cell.imageView?.image = 
  </code></pre>
  
  <p>Which just looks wrong and may confuse a fellow developer.</p>
  
  <p>But the <code>#imageLiteral</code> is much nicer than the alternative <code>UIImage(named: "image_name")</code>.</p>
  
  <p>So, is there any way in the Xcode preferences to change it so that the background color of the inline image is not the same as the background color of the code window? (Or some other solution.)</p>
  
  <p>Note, I prefer to use a white code window background, and even if I changed it to some other color, the same problem would occur with an image that was that color (e.g. black on black).</p>
  
  <p>Note: currently on Xcode Version 9.3.1 (9E501)</p>
  
  <p>I have tried looking through the Xcode preferences in "Fonts &amp; Colors" but there doesn't seem to be anything applicable.</p>
  
  <p>One potential solution I have considered is putting parentheses around the "invisible" image so that it's clear there's something there (reminds me of the invisible man wearing clothes so people can see him).</p>
  
  <pre><code>cell.imageView?.image = (  )
  </code></pre>
  
  <p>It's not ideal, but at least it doesn't look as weird and highlights it for fellow developers.</p>