File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
Sources/Components/Compositions Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -233,7 +233,7 @@ public class StyledEdgeNode<ContentNode: ASDisplayNode>: NamedDisplayNodeBase {
233
233
defer {
234
234
CATransaction . commit ( )
235
235
}
236
-
236
+ s
237
237
switch self . cornerRoundingStrategy {
238
238
case . clip( let assimilationColor) :
239
239
@@ -302,6 +302,19 @@ public class StyledEdgeNode<ContentNode: ASDisplayNode>: NamedDisplayNodeBase {
302
302
303
303
}
304
304
305
+ public override func asyncTraitCollectionDidChange(
306
+ withPreviousTraitCollection previousTraitCollection: ASPrimitiveTraitCollection
307
+ ) {
308
+ super. asyncTraitCollectionDidChange ( withPreviousTraitCollection: previousTraitCollection)
309
+ let userInterfaceStyle = asyncTraitCollection ( ) . userInterfaceStyle
310
+ guard
311
+ previousTraitCollection. userInterfaceStyle != userInterfaceStyle
312
+ else {
313
+ return
314
+ }
315
+ self . updateStrategy ( )
316
+ }
317
+
305
318
}
306
319
307
320
extension ShapeDisplaying {
You can’t perform that action at this time.
0 commit comments