title: How to apply styles to all text fields in Swift
body: <p>I'm trying to find the most efficient way to apply these border styles to all text fields in my view controller. It seems crazy to apply this style to all text fields separately. Is there an easy way to reference all text fields, or should I create some sort of a style class?</p>
  
  <pre><code>    textField.layer.cornerRadius = 8.0
      textField.layer.borderColor = (UIColor .grayColor()).CGColor;
      textField.layer.borderWidth = 1.0
  </code></pre>
  
  <p>Thanks for your help!</p>