Skip to content

Commit

Permalink
Disambiguate usage of decomposed CGAffineTransformComponents
Browse files Browse the repository at this point in the history
  • Loading branch information
luispadron committed Sep 26, 2024
1 parent 35b4691 commit fb6340e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fb6340e

Please sign in to comment.