SwiftUI List to show header only on scroll

We have a requirement for SwiftUI List to show the header only when user scrolls to top. This behaviour should be similar to search control that hides by default and only when the user pulls down then it displays. We would like to show our customView similar to search.

example : .searchable(text: $searchText, placement: .navigationBarDrawer(displayMode: .automatic))

We need to implement similar functionality ( such as hide list header by default and enable it on scroll ).

Can anyone suggest me a way to achieve this functionality.

Appreciate your response.

Thanks, Janakiram

Can some one shed lights on this ?.

SwiftUI List to show header only on scroll
 
 
Q