title: How do I access a class property by string in Swift?
body: <p>Let's say I have 5 <code>SKLabelNode</code>s. Each is named incrementally. <code>myLabel0</code>,<code>myLabel1</code> etc... They are all added to a <code>SKScene</code>. How do I set and get the label with a string. Something like: </p>
  
  <pre><code>for i in 0..5 {
   self["mylabel\(i)"].text = "Label \(i)"
  }
  </code></pre>
  
  <p>I know that in other languages you can do things similar to this. </p>