diff --git a/Sources/Private/CoreAnimation/Animations/StrokeAnimation.swift b/Sources/Private/CoreAnimation/Animations/StrokeAnimation.swift index 125ad8683c..cb9b613551 100644 --- a/Sources/Private/CoreAnimation/Animations/StrokeAnimation.swift +++ b/Sources/Private/CoreAnimation/Animations/StrokeAnimation.swift @@ -23,7 +23,9 @@ extension Stroke: StrokeShapeItem { func copy(width: KeyframeGroup) -> StrokeShapeItem { // Type-erase the copy from `Stroke` to `StrokeShapeItem` - copy(width: width) + // swiftformat:disable:next redundantProperty + let copy: Stroke = copy(width: width) + return copy } } @@ -34,7 +36,9 @@ extension GradientStroke: StrokeShapeItem { func copy(width: KeyframeGroup) -> StrokeShapeItem { // Type-erase the copy from `GradientStroke` to `StrokeShapeItem` - copy(width: width) + // swiftformat:disable:next redundantProperty + let copy: GradientStroke = copy(width: width) + return copy } }