Skip to content

Commit feb169b

Browse files
committed
set initial interfaceStyle
1 parent 9f7b06e commit feb169b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Sources/Components/Compositions/ShapeDrawingNode.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,12 @@ public final class ShapeDrawingNode: ASDisplayNode, ShapeDisplaying {
8686
backgroundColor = .clear
8787
clipsToBounds = false
8888
}
89-
89+
90+
public override func didLoad() {
91+
super.didLoad()
92+
self.backing.userInterfaceStyle = asyncTraitCollection().userInterfaceStyle
93+
}
94+
9095
public override func layout() {
9196
super.layout()
9297
if let closure = updateClosure {

0 commit comments

Comments
 (0)