Follow

@bardi the VStack will always be treated as a single row (it’s just a view after all).

Returning a ViewBuilder will allow for individually selectable subviews (provided they are tagged). Use a combination of listRowInsets and listRowSeperator to recreate the appearance the VStack gave you.

@phill you’re right, technically speaking the behaviour is expected.

Do you mean I replace the VStack with a ViewBuilder that will contain the subviews individually tagged?

@phill thanks again for the tip... I managed it at the end following stackoverflow.com/a/77467576/6. I assume this is what you meant too. It has helped recalibrate my understanding of Lists :)

@bardi sorry I missed your last reply; yes exactly this! Section returns a ViewBuilder too (content) so it works exactly the same way.

Sign in to participate in the conversation
The Not So Big Company

The home of The Not So Big Company on Mastodon.