title: Adding UITextField on UIView Programmatically Swift
body: <p>I'm new to Swift and iOS programming. I was trying to create a <code>UITextField</code> programmatically using Swift but couldn't get it quite right. Also how do you change it to have a translucent effect to fade into the background?</p>
  
  <pre><code>var myField: UITextField = UITextField (frame:CGRectMake(10, 10, 30, 10));
  self.addSubview(myField)
  </code></pre>