Skip to content

Commit a7ddcda

Browse files
committed
Fix compile issue
1 parent 3f300a3 commit a7ddcda

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

Diff for: Sources/OpenSwiftUICore/Layout/Geometry/Spacing.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ public struct Spacing: Equatable, Sendable {
246246
minima.merge(
247247
other.minima
248248
.lazy
249-
.filter { key, value in
249+
.filter { key, _ in
250250
edges.contains(key.edge)
251251
}
252252
) { max($0, $1) }

Diff for: Sources/OpenSwiftUICore/Layout/LayoutComputer/LayoutComputer.swift

+1-4
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,7 @@ extension LayoutComputer {
5959
}
6060

6161
override func spacing() -> Spacing {
62-
Spacing(minima: [
63-
.init(category: .edgeBelowText, edge: .top) : .zero,
64-
.init(category: .edgeAboveText, edge: .bottom) : .zero,
65-
])
62+
Spacing()
6663
}
6764

6865
override func sizeThatFits(_ size: _ProposedSize) -> CGSize {

0 commit comments

Comments
 (0)