2 State pull down

Hello!

I am trying to implement a 2 state pull down view. For example when the user will pull a little bit the search bar will reveal and when he continues to pull (or another pull from begining) it will refresh the content.

I have tried with .refreshable but not even a single chance. Is there any built in to do this? Or I should try to dig more for the solution implemented traditional way with measuring the distance the user pulled down?

Thank you! Mihai

2 State pull down
 
 
Q