Learn Courses My Dashboard

Segmented picker to navigationBarDrawer

Hi everyone,
Is there any way to add a segmented picker in place of a searchbar in the navigationBarDrawer? So that it sticks to the title and is hidden on scroll?

So basically something like this but behaving like a native searchbar.