title: How do you swap two variables of any type without using third in swift?
body: <p>I know how to swap <strong>int</strong> like below:</p>
  
  <pre><code>var x = 5
  var y = 7
  
  x = x + y
  y = x - y
  x = x - y
  
  print(x)
  print(y)
  </code></pre>
  
  <p>But how can I swap two variables of any other type without using a third variable ? </p>