From debb5ff09213ab27ced4fcf9d9439931b2803b7a Mon Sep 17 00:00:00 2001 From: Luis Padron Date: Thu, 26 Sep 2024 12:20:19 -0400 Subject: [PATCH] Disambiguate usage of decomposed CGAffineTransformComponents --- .../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 5488fc7..b82874d 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 = initialValue.decomposed() - var finalDecomposition = finalValue.decomposed() + var initialDecomposition: CGAffineTransformComponents.DecomposedMatrix = initialValue.decomposed() + var finalDecomposition: CGAffineTransformComponents.DecomposedMatrix = finalValue.decomposed() // Prefer rotating over scaling when possible. let flippedFromNegativeXToNegativeY = initialDecomposition.scaleX < 0 && finalDecomposition.scaleY < 0