Skip to content

Commit d33184b

Browse files
committed
Fix WindowGroupNode update performance (inverted condition)
The first view graph update triggered in each window group node update is meant to be a dry-run but wasn't due to an inverted condition.
1 parent fbc952f commit d33184b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SwiftCrossUI/Scenes/WindowGroupNode.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public final class WindowGroupNode<Content: View>: SceneGraphNode {
125125
with: newScene?.body,
126126
proposedSize: proposedWindowSize,
127127
environment: environment,
128-
dryRun: windowSizeIsFinal
128+
dryRun: !windowSizeIsFinal
129129
)
130130

131131
if !windowSizeIsFinal {

0 commit comments

Comments
 (0)