ElegantPages
ElegantPages copied to clipboard
Setting Custom height for ElegantHList based on content
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.
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