-
-
Notifications
You must be signed in to change notification settings - Fork 487
Getting Started with EFQRCode
EFQRCode is a lightweight, pure-Swift library for generating stylized QRCode images with watermark or icon, and for recognizing QRCode from images, inspired by qrcode. Based on CoreGraphics
, CoreImage
, and ImageIO
, EFQRCode provides you a better way to handle QRCode in your app, no matter if it is on iOS, macOS, watchOS, and/or tvOS. You can integrate EFQRCode through CocoaPods, Carthage, and/or Swift Package Manager.
You can click the App Store
button below to download demo, support iOS, tvOS, watchOS, and macOS:
To run the example project manually, clone the repo, demos are in the 'Examples' folder, remember run command sh Startup.sh
in terminal to get all dependencies first, then open EFQRCode.xcworkspace
with Xcode and select the target you want, run.
Or you can run the following command in terminal:
git clone [email protected]:EFPrefix/EFQRCode.git; cd EFQRCode; sh Startup.sh; open 'EFQRCode.xcworkspace'
Xcode 12.0+
Swift 5.1+
iOS 9.0+ / macOS 10.10+ / tvOS 9.0+ / watchOS 2.0+
Previous Versions and Requirements
Version | Needs |
---|---|
1.x | Xcode 8.0+ Swift 3.0+ iOS 8.0+ / macOS 10.11+ / tvOS 9.0+ |
4.x | Xcode 9.0+ Swift 4.0+ iOS 8.0+ / macOS 10.11+ / tvOS 9.0+ / watchOS 2.0+ |
5.x | Xcode 11.1+ Swift 5.0+ iOS 8.0+ / macOS 10.11+ / tvOS 9.0+ / watchOS 2.0+ |
Follow the Installation Guide to integrate EFQRCode to your project.
Curious about what EFQRCode could do and how would it look like when used in your project? See our Cheat Sheet page, in which some useful code snippet are listed. There you can learn how to use EFQRCode in your project better.
At last, please also remember to check the full API Reference whenever you need to know more about EFQRCode.
- Please select a high contrast foreground and background color combinations;
- To improve the definition of QRCode images, increase
size
, or scale up usingmagnification
(instead); - Magnification too high/size too large/contents too long may cause failure;
- It is recommended to test the QRCode image before put it into use;
- You can contact me if there is any problem, both
Issue
andPull request
are welcome.
PS of PS: I wish you can click the Star
button if this tool is useful for you, thanks, QAQ...
Email: [email protected]
EFQRCode is available under the MIT license. See the LICENSE file for more info.
- Ask a question ...
- in discussions
- on Stack Overflow
- Submit an issue
- Open a pull request