exyte / ScalingHeaderScrollView

A scroll view with a sticky header which shrinks as you scroll. Written with SwiftUI.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is there any way to handle dynamic height header?

vaibhavbansod opened this issue · comments

@vaibhavbansod hey, what do you mean by dynamic exactly? Please provide more details

Thanks for the quick response.

My header is a bit complex in design, and its height basically depends on its content. As of now, lib needs min and maxHeight. i don't have maxHeight of the header.

You can use 'frameGetter' (from the lib or from the Internet), to dynamically calculate your content's size to pass it to the lib

Thanks. will try this

Closing this one for now, please let me know if you have further issues