Post

Replies

Boosts

Views

Activity

Reply to .onMove drag and drop
This is a valid use case often dismissed. I use two types of solutions to a ScrollView dynamically adjusting to a List inside it: If your List rows have a fixed known height, something like this should work dynamically: ScrollView{ VStack{ List{} } .frame(height: CGFloat(listRows.count*30) } If your list rows have unpredictable sizes, a not elegant but functional workaround is to put your List inside a ZStack along with an overlaying zero opacity ForEach with Texts (as an example) that have the size of each respectI’ve row. The ScrollView will dynamically adapt to the size of the transparent Texts.
3w