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

Support OS X #15

Closed
1ec5 opened this issue May 11, 2016 · 0 comments
Closed

Support OS X #15

1ec5 opened this issue May 11, 2016 · 0 comments

Comments

@1ec5
Copy link
Contributor

1ec5 commented May 11, 2016

On OS X, AppKit uses NSImage and NSColor instead of UIImage and UIColor. We should use Swift’s target conditional macros to switch between these types. A couple strategic typealiases could make these even easier.

/cc @tmcw

1ec5 added a commit that referenced this issue May 12, 2016
Added framework and test bundle targets for OS X. Strategically placed some type aliases to keep conditional compilation to a minimum. Added a playground nearly identical to the iOS one.

Fixes #15.
@1ec5 1ec5 mentioned this issue May 12, 2016
@1ec5 1ec5 closed this as completed in #21 May 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant