title: check if a buttons has a set image
body: <p>I am trying to have a button that checks if it has an icon if so do X other wise do Y</p>
  
  <pre><code>        if button.currentImage!.isEqual(UIImage(named: "check")) {
              print("X")
          } else {
              print("Y")
          }
  </code></pre>