finds.dev← search

// the find

kingsic/SGQRCode

★ 1,696 · Objective-C · Apache-2.0 · updated Feb 2024

The easy to use bar code and QR code scan library for iOS【支持二维码生成、读取图片中二维码、条形码和二维码扫描】

SGQRCode is an Objective-C wrapper around AVFoundation and CoreImage for QR/barcode scanning and QR code generation on iOS. It handles the boilerplate of camera session setup, permission checks, torch control, and scan UI customization. Aimed at iOS developers who want drop-in scanning without writing AVCaptureSession plumbing themselves.

Sensible decomposition — permission, torch, scan view, and sound effect are each their own class rather than one 2000-line god object. The WeakProxy pattern for the AVCaptureSession delegate is a correct fix for a real retain-cycle footgun that trips up many homegrown implementations. Ships example apps styled after WeChat, QQ, and Weibo scan UIs, which are the actual reference designs Chinese iOS developers are asked to replicate. CocoaPods integration is straightforward and the podspec is present.

Objective-C in 2024 is a hard sell — Swift Package Manager is the default for any iOS project started in the last four years, and there is no SPM support here. The library has been effectively unmaintained since mid-2022 (v4.1.0), with the last commit in early 2024 being minor. CIDetector is used for reading QR codes from images, which the README itself acknowledges cannot detect barcodes from images — that's a meaningful gap left unresolved. No unit or integration tests exist despite the test targets in the Xcode project; both test files are empty stubs.

View on GitHub →

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →