title: Swift swap array objects
body: <p>I'm unable to swap an array of strings on cell reorder:</p>
  <pre><code>var scatola : [String] = []
  
  override func tableView(tableView: UITableView, moveRowAtIndexPath fromIndexPath: NSIndexPath, toIndexPath: NSIndexPath) {
      swap(&amp;scatola[fromIndexPath.row], &amp;scatola[toIndexPath.row])
  }
  </code></pre>
  <p>this code throws:</p>
  <blockquote>
  <p>inout writeback to computed property 'scatola' occurs in multiple arguments to call, introducing invalid aliasing</p>
  </blockquote>
  <p>What is the right way to do it?</p>