From fb6340e658f687bfd799dc3161e9181c6adfb351 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..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 = initialValue.decomposed() - var finalDecomposition = 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