From d82f28b63aa66d415d2498395c7da2c54a78da64 Mon Sep 17 00:00:00 2001 From: Laszlo Teveli Date: Wed, 14 Aug 2024 18:45:52 +0200 Subject: [PATCH] Fix VStack line spacing --- Sources/Flow/Internal/Layout.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Flow/Internal/Layout.swift b/Sources/Flow/Internal/Layout.swift index b8536818..92f0cb39 100644 --- a/Sources/Flow/Internal/Layout.swift +++ b/Sources/Flow/Internal/Layout.swift @@ -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) }