Skip to content

Commit 716ee40

Browse files
committed
Fix compile warning
1 parent f2c9c27 commit 716ee40

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Sources/OpenSwiftUICore/Shape/ShapeStyle/BlendMode.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public struct _BlendModeShapeStyle<Style>: ShapeStyle, PrimitiveShapeStyle where
109109
switch shape.operation {
110110
case .fallbackColor, .modifyBackground:
111111
style._apply(to: &shape)
112-
case .prepareText(let level):
112+
case .prepareText:
113113
if blendMode == .normal {
114114
style._apply(to: &shape)
115115
} else {

Sources/OpenSwiftUICore/Shape/ShapeStyle/HierarchicalShapeStyle.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ public struct HierarchicalShapeStyle: ShapeStyle, PrimitiveShapeStyle {
4646
if let foregroundStyle = shape.foregroundStyle ?? shape.currentForegroundStyle {
4747
let style = foregroundStyle.primaryStyle(in: shape.environment) ?? foregroundStyle
4848
if id == 0 {
49-
if case let .copyStyle(name: name) = shape.operation {
49+
if case .copyStyle = shape.operation {
5050
shape.result = .style(style)
5151
} else {
5252
style._apply(to: &shape)
5353
}
5454
} else {
55-
if case let .copyStyle(name: name) = shape.operation {
55+
if case .copyStyle = shape.operation {
5656
shape.result = .style(AnyShapeStyle(OffsetShapeStyle(base: style, offset: level)))
5757
} else {
5858
OffsetShapeStyle(base: style, offset: level)._apply(to: &shape)

Sources/OpenSwiftUICore/Shape/ShapeStyle/OffsetShapeStyle.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ package struct OffsetShapeStyle<Base>: ShapeStyle where Base: ShapeStyle {
1414
case .prepareText(let level):
1515
shape.operation = .prepareText(level: offset + level)
1616
base._apply(to: &shape)
17-
case .resolveStyle(let name, let levels):
17+
case let .resolveStyle(_, levels):
1818
let _ = levels.lowerBound + offset ..< levels.upperBound + offset
1919
// Blocked by _ShapeStyle_Pack
2020
case .multiLevel:
2121
shape.result = .bool(false)
2222
case .fallbackColor(let level):
2323
shape.operation = .fallbackColor(level: offset + level)
2424
base._apply(to: &shape)
25-
case .copyStyle(let name):
25+
case .copyStyle:
2626
base.mapCopiedStyle(in: &shape) { style in
2727
style.offset(by: offset)
2828
}

Sources/OpenSwiftUICore/Shape/ShapeStyle/ShapeStyledLeadView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// Status: WIP
77

88
package import Foundation
9-
package import AttributeGraph
9+
package import OpenGraphShims
1010

1111
package protocol ShapeStyledLeafView: ContentResponder {
1212
static var animatesSize: Bool { get }

0 commit comments

Comments
 (0)