We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8fe1e8 commit a198635Copy full SHA for a198635
Sources/OpenSwiftUICore/Shape/ShapeStyle/ForegroundStyle.swift
@@ -88,6 +88,7 @@ extension ForegroundStyle {
88
if shape.activeRecursiveStyles.contains(.foreground) {
89
LegacyContentStyle.sharedPrimary._apply(to: &shape)
90
} else {
91
+ shape.activeRecursiveStyles.formUnion(.foreground)
92
shape.effectiveForegroundStyle._apply(to: &shape)
93
shape.activeRecursiveStyles.subtract(.foreground)
94
}
Sources/OpenSwiftUICore/Shape/ShapeStyle/ShapeStyleShape.swift
@@ -104,7 +104,7 @@ public struct _ShapeStyle_Shape {
104
105
106
package var effectiveForegroundStyle: AnyShapeStyle {
107
- environment._effectiveForegroundStyle
+ foregroundStyle ?? environment._effectiveForegroundStyle
108
109
110
0 commit comments