Add a branded QR code with your app icon in the center to marketing materials or printed packaging.
Scan and decode multiple QR codes from a single image inside an iOS or macOS app.
Generate an animated GIF or MP4 QR code for eye-catching social media or digital signage campaigns.
Quickly integrate QR code scanning into a Swift app without writing custom camera or image-processing code.
Add via Swift Package Manager or CocoaPods. Demo apps on the App Store let you preview output before integrating.
EFQRCode is a Swift library for working with QR codes inside Apple platform apps. It covers two things: generating QR code images and reading (recognizing) QR codes from existing images. It works on iOS, macOS, watchOS, tvOS, and visionOS, and is built on top of Apple's own CoreGraphics and CoreImage frameworks. On the generation side, the library goes beyond plain black-and-white QR codes. You can embed a custom image or icon in the center of the QR code, control colors and transparency, and even generate animated QR codes by feeding in a sequence of frames. The output formats include standard still images (PNG, JPEG, PDF), as well as animated formats like GIF, APNG, SVG video, and MP4. This makes it possible to produce branded or visually distinct QR codes for marketing materials, apps, or physical prints. For recognition, you pass in any image and the library returns whatever QR code content it finds. If there are multiple QR codes in the same image, it returns all of them. The results come back as an array of decoded strings, so you can loop through them in your app. The README recommends using high-contrast color combinations for generated codes, testing any generated code before publishing it, and keeping content size reasonable to avoid generation failures caused by oversized inputs. These are practical notes about QR code reliability in general, not limitations specific to the library. Installation is available via CocoaPods, Carthage, and Swift Package Manager. Demo apps for iOS, tvOS, watchOS, and macOS are available on the App Store so you can explore the library's output before integrating it. The project is open source and accepts pull requests.
← efprefix on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.