Skip to content

Commit 1755278

Browse files
committed
Fix hidden displaylist issue
1 parent 1bf1b18 commit 1755278

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

Sources/OpenSwiftUICore/Render/RendererLeafView.swift

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,19 @@ extension RendererLeafView {
2929
// TODO
3030
var outputs = _ViewOutputs()
3131
// FIXME
32-
outputs.preferences.displayList = Attribute(
33-
LeafDisplayList(
34-
identity: .init(),
35-
view: view.value,
36-
position: inputs.animatedPosition(),
37-
size: inputs.animatedCGSize(),
38-
containerPosition: inputs.containerPosition,
39-
options: .defaultValue,
40-
contentSeed: .init()
32+
if inputs.preferences.requiresDisplayList {
33+
outputs.preferences.displayList = Attribute(
34+
LeafDisplayList(
35+
identity: .init(),
36+
view: view.value,
37+
position: inputs.animatedPosition(),
38+
size: inputs.animatedCGSize(),
39+
containerPosition: inputs.containerPosition,
40+
options: .defaultValue,
41+
contentSeed: .init()
42+
)
4143
)
42-
)
44+
}
4345
return outputs
4446
}
4547
}

0 commit comments

Comments
 (0)