Skip to content

Commit

Permalink
Fix VStack line spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
tevelee committed Aug 14, 2024
1 parent 77eb437 commit d82f28b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Flow/Internal/Layout.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ struct FlowLayout: Sendable {
var size = lines
.map(\.size)
.reduce(.zero, breadth: max, depth: +)
size[.vertical] += lines.sum(of: \.leadingSpace)
size[axis] += lines.sum(of: \.leadingSpace)
return CGSize(size: size, axis: axis)
}

Expand Down

0 comments on commit d82f28b

Please sign in to comment.