dagronf / QRCode

A quick and beautiful macOS/iOS/tvOS/watchOS QR Code generator/detector library for SwiftUI, Swift and Objective-C.
MIT License
438 stars 57 forks source link

Ambiguous watchOS instructions in README.md #3

Closed SuperKenVery closed 2 years ago

SuperKenVery commented 2 years ago

After reading README.md, it's easy for me to think that, in order to generate QR codes on watchOS, I must add QRCode and QRCode3rdPartyGenerator to my project, while in fact I should only add QRCode3rdPartyGenerator, or the project would fail to build.

dagronf commented 2 years ago

Hi there,

Apologies for the confusion here. I've just pushed up a new build (tagged 7.0.0) which includes a separate watchOS library target (QRCodeWatchOS and QRCodeWatchOSDynamic) which will hopefully reduce the confusion here. Admittedly when exploring your comment I stumbled over exactly the same issue!

So, long answer short - you should upgrade to 7.0.0 and link against QRCodeWatchOS (much easier to understand!)

Can you take a look and see what you think?

Cheers and thanks for the feedback!

SuperKenVery commented 2 years ago

Great job! It's now much easier to understand how to generate QR code on watchOS!

However, I think there are 2 tiny things:

  1. Despite its name, QRCodeWatchOS also works (perfectly) on iOS/macOS/tvOS. If one wants to keep the same code between iOS/watchOS to generate QR code, this may add confusion to him/her; maybe leading he/she to use different codes on iOS and watchOS.
  2. The QRCode3rdPartyGenerator seems to still be there. Maybe consider removing it?
dagronf commented 2 years ago

Agreed.

The README.md file has been updated to reflect the changes, also that QRCodeExternal can be used for all platforms.

I've updated the version number to 8.0.0 so that anyone who has upgraded to 7.0.0 won't automatically update to the new naming until they want/need to.

SuperKenVery commented 2 years ago

Thanks! It looks great now!

For some reason the CIFilters generate blank qr codes in my project... It's you who made my project possible! :tada: :tada: :tada:

dagronf commented 2 years ago

Ah that's great news!

It's definitely odd that the CIFilter is generating a blank qr code. I'm glad I could help!

Cheers and thanks for all the feedback.