If you wonder how collapsing header view is implemented in weather and contacts detail in iOS, here is the answer. FluentCollapsingHeaderView gives you exactly the same behavior you see in those apps.
Just add this repository link to Xcode add Swift Package Manager placeholder to add this framework to your project.
Just copy all the files in Source folder into your project (Make sure target membership of files is checked as your project target)
See examples
There are two examples that show how to use FluentCollapsingHeaderView.
FluentCollapsingHeaderView is owned and maintained by the Seyed Samad Gholamzadeh. You can follow me on Twitter at @ssamadgh for project updates and releases.
FluentCollapsingHeaderView is released under the MIT license. See LICENSE for details.