0

What's the right way to implement a hides-on-scroll navigation bar along with an extension view attached to the navigation bar's bottom. And on scroll the navigation bar gets hidden and the extension view sticks to the status bar.

Adithya Reddy
  • 11
  • 1
  • 4

1 Answers1

0

You can use TLYShyNavBar library to implement this feature if you want extension view to stick to status bar. If you just want navigationBar to hide along with extension then use hidesBarsOnSwipe property

navigationController?.hidesBarsOnSwipe = true

refer this thread to read more about this behaviour.

Suhit Patil
  • 11,748
  • 3
  • 50
  • 60
  • Thanks @suhit, I'm currently using TLYShyNavBar in my project. But I wanted to know if there are any other ways and also the right way of implementing it. – Adithya Reddy Jun 07 '17 at 08:14
  • You can use custom collection view to implement this feature if you have collection view, table view headers also works. You can use headers or reusable view instead of extension view to get this functionality of you don't want to use third party library. – Suhit Patil Jun 07 '17 at 08:22