title: How to use sticky header with segmented control in swift?
body: <p>I have a layout in which I make a sticky header with segmented control and there would be a collapsible header just above the segmented control. So I m confused about what would be the best approach to implement it, whether table view or scroll view &amp; how would I achieve this. If anybody has some idea or reference please help me out.</p>
  <p>Image when not scrolled
  <a href="https://i.stack.imgur.com/xnWg1.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xnWg1.jpg" alt="enter image description here" /></a></p>
  <p>Image when scrolled</p>
  <p><a href="https://i.stack.imgur.com/ZlKTw.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZlKTw.jpg" alt="enter image description here" /></a></p>