Some simple SwiftUI code has been showing some unexpected behaviour - as seen in the image below, the dividers appear to be adding heaps of vertical space between the content of the HStack. I wish to reduce the amount of space between the row contents and the divider. The PreviewProvider is just a VStack containing 5x SummaryDataRow.
Asked
Active
Viewed 156 times
0

Conrad Scherb
- 896
- 1
- 6
- 9
-
1The default spacing of a VStack is like 8, set it to a smaller number. – EmilioPelaez Feb 17 '21 at 00:57
-
1And please paste your code as text. – pawello2222 Feb 17 '21 at 00:57
-
Also: [How to adjust spacing between HStack elements in swiftUI?](https://stackoverflow.com/q/56506357/8697793) – pawello2222 Feb 17 '21 at 01:00