Skip to content

Commit

Permalink
Disambiguate usage of decomposed CGAffineTransformComponents (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
luispadron authored Oct 2, 2024
1 parent 35b4691 commit a50ff45
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 a50ff45

Please sign in to comment.