How to I conceal the search bar and make it appear when a button is pressed
<p>How to make a <code>SearchBar</code> <code>Controller</code> hide itself when the view is loaded and then appears when a button is pressed before disappearing again when you scroll upwards. Snapping the search function right up and concealing it until the button is pressed again. </p>

<p><a href="https://i.stack.imgur.com/WSNM5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WSNM5.png" alt="I&#39;m using storyboard to create this, am I doing it correctly?"></a></p>

<p>Am I doing this right?  I've looked up tutorials and they all point to adding the <code>Searchbar</code> to a <code>TableHeaderView</code>. I wonder is there a <code>TableHeaderview</code> when the <code>TableView</code> is set to static. </p>

<p>Thanks a lot guys </p>