From ce83a64096802fb2705cb92a6aa8b183271a7c84 Mon Sep 17 00:00:00 2001 From: Luis Padron Date: Thu, 26 Sep 2024 12:51:34 -0400 Subject: [PATCH] Disambiguate usage of decomposed CGAffineTransform --- .../AnimatableProperty+CGAffineTransform.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/Stagehand/AnimatableProperty/AnimatableProperty+CGAffineTransform.swift b/Sources/Stagehand/AnimatableProperty/AnimatableProperty+CGAffineTransform.swift index b82874d..35f2b0e 100644 --- a/Sources/Stagehand/AnimatableProperty/AnimatableProperty+CGAffineTransform.swift +++ b/Sources/Stagehand/AnimatableProperty/AnimatableProperty+CGAffineTransform.swift @@ -28,8 +28,8 @@ extension CGAffineTransform: AnimatableProperty { and finalValue: CGAffineTransform, at progress: Double ) -> CGAffineTransform { - var initialDecomposition: CGAffineTransformComponents.DecomposedMatrix = initialValue.decomposed() - var finalDecomposition: CGAffineTransformComponents.DecomposedMatrix = finalValue.decomposed() + var initialDecomposition: DecomposedMatrix = initialValue.decomposed() + var finalDecomposition: DecomposedMatrix = finalValue.decomposed() // Prefer rotating over scaling when possible. let flippedFromNegativeXToNegativeY = initialDecomposition.scaleX < 0 && finalDecomposition.scaleY < 0