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

Added SPM support, remove GLKit dependence #46

Merged
merged 2 commits into from
May 1, 2021

Conversation

dagronf
Copy link
Contributor

@dagronf dagronf commented Jan 16, 2021

This patch includes the following two changes

** Add support for Swift Package Manager**

I've added a Package.swift file at the root level that allows for both library and framework targets for DominantColor.

** Remove dependence on GLKit **

I've removed the dependence on GLKit by moving to SIMD structures as used by Metal. The change was mostly a simple name change (eg. GLKVector3 -> simd_float3) and some simple replacements for a couple of the GLKit functions.

As a result I've had to 'up' the versions from macOS 10.11 -> 10.13 and iOS 9 -> 11.

Moved to using SIMD vector operations instead
Unfortunately simd support is only available from iOS 11 and macOS 10.13
@indragiek
Copy link
Owner

@dagronf Thanks so much and sorry for the really late PR review, I just saw this! Appreciate it.

@indragiek indragiek merged commit 77d9fd1 into indragiek:master May 1, 2021
@dagronf
Copy link
Contributor Author

dagronf commented May 2, 2021

No problems at all mate. Glad I could help out! Thank you for all your work on this great library.

@dagronf dagronf deleted the remove_gl_dependence branch June 12, 2021 09:25
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.

None yet

2 participants