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

Make all extensions public so they're accessible via frameworks #16

Merged
merged 1 commit into from
Jul 1, 2017
Merged

Make all extensions public so they're accessible via frameworks #16

merged 1 commit into from
Jul 1, 2017

Conversation

drewolbrich
Copy link
Contributor

This commit addresses issue #15, "Make extensions public."

  • All extensions are made public, so they can be referenced when
    VectorMath is added to a project as a framework via Cocoapods.

  • Extensions that declare conformance to Hashable are broken out as
    separate extensions, because extensions that declare protocol
    conformance cannot be declared public.

  • The explicit definition of Scalar.pi is removed, because Swift
    already declares it as Float.pi and Double.pi. When VectorMath is
    added to a project as a framework and Scalar.pi is referenced, the
    duplicate definition of pi causes a compiler error about ambiguous
    symbols.

This commit addresses issue #15, "Make extensions public."

- All extensions are made public, so they can be referenced when
  VectorMath is added to a project as a framework via Cocoapods.

- Extensions that declare conformance to Hashable are broken out as
  separate extensions, because extensions that declare protocol
  conformance cannot be declared public.

- The explicit definition of Scalar.pi is removed, because Swift
  already declares it as Float.pi and Double.pi. When VectorMath is
  added to a project as a framework and Scalar.pi is referenced, the
  duplicate definition of pi causes a compiler error about ambiguous
  symbols.
@drewolbrich drewolbrich mentioned this pull request Jul 1, 2017
@nicklockwood nicklockwood merged commit 7ed22fa into nicklockwood:master Jul 1, 2017
@drewolbrich drewolbrich deleted the public-extensions branch March 5, 2018 03:05
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