Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting Custom height for ElegantHList based on content #5

Open
sai-kante opened this issue Jan 11, 2021 · 0 comments
Open

Setting Custom height for ElegantHList based on content #5

sai-kante opened this issue Jan 11, 2021 · 0 comments

Comments

@sai-kante
Copy link

sai-kante commented Jan 11, 2021

Hello Kevin,

This is more of a question rather than a issue.

I am trying to use ElegantHList and set the height of the view to height of the cell.
I have this as ViewForPage

Text("sample text")
            .background(Color.yellow)
            .erased

When I use that in ElegantHList, it takes full screen height rather than height of the text.
Screen Shot 2021-01-10 at 10 13 21 PM

I know I can specify .frame(height: 50) etc., But, I would like this to be dynamic based on height of my view.
Can you please tell me if there is a better way ?

P.S: this is my first iphone app.

Thank You,
Sai

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant