title: Get an outlet variable by name
body: <p>Looking for a way to access an outlet programmatically in swift:</p>
  
  <pre><code>@IBOutlet var label1: UILabel?
  var outletName = "label1"
  view[outletName].text = "hello, world!"
  </code></pre>
  
  <p>Is the only way to do this to create my own custom mapping, like so?</p>
  
  <pre><code>@IBOutlet var label1: UILabel?
  let outlets = ["label1": label1]
  let outletName = "label1"
  outlets[outletName].text = "hello, world!"
  </code></pre>
  
  <p><strong>EDIT:</strong> Seems my original question was poorly worded, lets try again:<br>
  I'm looking to access a variable through some string identifier. In my original question I was trying to ask if a variable can be accessed by the name of the variable itself somehow. IE accessing variable label1 with a string of the variable's name "label1".</p>