Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ambigious usage of CGAffineTransform.decomposed #79

Merged
merged 1 commit into from
Oct 2, 2024

Conversation

luispadron
Copy link
Collaborator

Fixes the following compile error when consuming Stagehand in some projects:

Sources/Stagehand/AnimatableProperty/AnimatableProperty+CGAffineTransform.swift:32:45: error: ambiguous use of 'decomposed()'
        var finalDecomposition = finalValue.decomposed()
                                            ^
Sources/Stagehand/AnimatableProperty/AnimatableProperty+CGAffineTransform.swift:86:10: note: found this candidate
    func decomposed() -> DecomposedMatrix {
         ^
CoreGraphics.CGAffineTransform:13:17: note: found this candidate
    public func decomposed() -> CGAffineTransformComponents
                ^

This is because CGAffineTransform now has this API:

extension CGAffineTransform {
...
    @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
    public func decomposed() -> CGAffineTransformComponents
...
}

@luispadron luispadron force-pushed the luis/fix-ambigious-usages branch from ce83a64 to fb6340e Compare September 26, 2024 18:18
@luispadron luispadron merged commit a50ff45 into master Oct 2, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants