From 8fec679de82fc1ee36e320be3891a5914308d572 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) }