title: How to expand a UISearchBar when it becomes active
body: <p>I have a UISearchBar that needs to be compressed (see screenshot) and then expand to a larger size when it is touched or isActive.</p>
  
  <p>How would I go about doing this? Currently my search bar is placed in the view via IB.</p>
  
  <p>thanks</p>
  
  <p><img src="https://i.stack.imgur.com/IKe7z.png" alt="UISearchBar screenshot"></p>