title: Custom setter for tuple property (Swift)
body: <p>I have a computed property in my class that is an optional tuple:</p>
  
  <pre><code>var contents: (Int, Bool)?
  </code></pre>
  
  <p>I want to write a custom setter but don't know how to reference the tuple components individually. Anyone knows? I've tried the following but it doesn't work:</p>
  
  <pre><code>var contents: (Int colorNumber, Bool selected)? {
      // getter &amp; setter here...
  }
  </code></pre>