title: Deselect button (Radio Button) Swift 3 iOS
body: <p>I am trying to make 2 buttons in Swift behave like Radio Buttons.</p>
  
  <p>Each button has a different image for when they are Selected and Not Selected.</p>
  
  <p>When I click one button, I want the other Button to go back to being in the "Not Selected" state and showing the "Not Selected" image if it was previously selected.</p>
  
  <p>I'm using a switch statement:</p>
  
  <pre><code>func toggle(sender: UIButton) {
  
  
      switch sender.tag {
      case 1:
      sender.isSelected = !sender.isSelected
  
  
      case 2:
      sender.isSelected = !sender.isSelected
  
  
      default:
          sender.isSelected = !sender.isSelected
      }
  
  
  
      }
  </code></pre>
  
  <p>This statement works for changing the buttons, but allows for both to be selected at the same time. How do I make it so that the other button is de-selected when you click the other one of the buttons?</p>