Any ideas how to create like this animation on iOS using Swift ? Thanks

[![enter image description here](https://i.stack.imgur.com/h49Hi.gif)](https://i.stack.imgur.com/h49Hi.gif)
['https://Stackoverflow.com/questions/46977956', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/5718563/']
There are three ways to achieve this (probably more than three):

1. Create a custom header and listen to your table view Scroll, then update the header based on the offset.
2. Use a third party library like this one:
	* <https://material.io/components/ios/catalog/flexible-headers/>
3. Follow a tutorial (there are many of them): <https://www.youtube.com/watch?v=lML5XMLrZEk>

Sometimes it is better to do that by yourself, but in this case, I think a framework could help you.
I think it's not the UINavigationBar. You could change nav bar alpha then add custom view to table view or collection view and create animation that you need when scrolling.