title: how to change specific color in image to a different color
body: <p>I have an UIView that its layer contents is an image.</p>
  
  <pre><code>let image = UIImage(names: "myImage")
  layer.contents = image.CGImage
  </code></pre>
  
  <p>This image has a few colors.</p>
  
  <p>Is there a way to change a specific color to any other color of my choice?</p>
  
  <p>I found answers for changing the all of the colors in the image but not a specific one.</p>
  
  <p><a href="https://stackoverflow.com/questions/19274789/how-can-i-change-image-tintcolor-in-ios-and-watchkit">answer</a></p>