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 ad4afc5 commit 796a624Copy full SHA for 796a624
Sources/OpenSwiftUICore/Shape/ShapeStyle/ForegroundStyle.swift
@@ -76,6 +76,7 @@ extension ForegroundStyle {
76
if shape.activeRecursiveStyles.contains(.foreground) {
77
LegacyContentStyle.sharedPrimary._apply(to: &shape)
78
} else {
79
+ shape.activeRecursiveStyles.formUnion(.foreground)
80
shape.effectiveForegroundStyle._apply(to: &shape)
81
shape.activeRecursiveStyles.subtract(.foreground)
82
}
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