title: Is there a way to compare button images in Swift/iOS
body: <p>I've looked around and I don't think there's a way to do this, but what I'm looking for is the ability to compare button images. I have a situation where I want to see if the button is set to a certain image before I change it. The pseudocode would be something like</p>
  
  <pre><code>if (myCell.followButton.image == UIImage(named: "")) {
  //do something here
  }
  </code></pre>