title: Swift Expandable Search Bar in Header?
body: <p>I have a table view that I would like to be able to search through. I understand how to do that, but is there a way that I can have a bar button item that expands to a search bar (of a certain width) right inside my table view header? For example, can I make something like below in swift?</p>
  
  <p><a href="https://i.stack.imgur.com/TLNrG.png" rel="noreferrer"><img src="https://i.stack.imgur.com/TLNrG.png" alt="Expandable Search Bar"></a></p>