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

Add macOS support #53

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open

Conversation

blochberger
Copy link

These are a lot of commits but until commit 06c0ef4 it is mostly cleaning up the code in preparation.

Most of the code can be shared, except for the UIKit imports, which I conditionally replaced by Cocoa imports on macOS. Image handling is slightly different, as the UI* classes are not available on macOS.

Due to the initializer of NSImageView not accepting an optional NSImage I refrained from adding a convenience initializer accepting a QRCode, where it is unclear if an image could be constructed.

I'm not sure if it breaks the Travis CI, Carthage, Cocoapods, etc setups. I would appreciate if someone can test that.

Most of the code can be shared, except for the `UIKit` imports, which I
conditionally replaced by `Cocoa` imports on macOS. Image handling is
slightly different, as the `UI*` classes are not available on macOS.

Due to the initializer of `NSImageView` not accepting an optional
`NSImage` I refrained from adding a convenient initializer accepting a
`QRCode`, where it is unclear if an image could be constructed.
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.

1 participant