title: Changing Search Bar placeholder text font in Swift
body: <p>I am trying to change the font of the placeholder text in the search bar within my Search Display Controller. I was looking at some examples and I tried to implement them but as they are in Objective-C, I wasn't able to find any that I could get to work.</p>
  
  <p>For example, I tried this one:</p>
  
  <pre><code>UITextField *textField = [[searchBar subviews] objectAtIndex:1]; 
  [textField setFont:[UIFont fontWithName:@"Helvetica" size:40]];
  </code></pre>
  
  <p>But I was unable to get past <code>var textField: UITextField = UISearchBar</code></p>
  
  <p>Any ideas?</p>