# twostraws/CodeScanner

A SwiftUI view that is able to scan barcodes, QR codes, and more, and send back what was found.

Repository: https://github.com/twostraws/CodeScanner
Canonical: https://ross.abutalabs.com/products/codescanner
Language: Swift
License: MIT
License Family: permissive
Last push: 2026-04-02T12:06:37+00:00

## Health v2 (maintenance only)
Score: 64/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 75, release rhythm 28, longevity 100
- inputs: {"age_days": 2456, "days_push": 153, "days_rel": 640, "gap_med": 73, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1224, forks 328 (observed 2026-08-28T04:04:02.785180+00:00)

## What it is
CodeScanner is a SwiftUI library providing a CodeScannerView struct that scans QR codes, barcodes, and other code types using the device camera. It wraps AVFoundation scanning into a simple declarative view with completion callbacks and customization options.

## Use cases
- scan qr codes in a swiftui app
- read barcodes with the iphone camera
- add a code scanner view to an ios app
- scan multiple codes continuously
- simulate qr scanning in the ios simulator

## When to choose
- you are building an iOS app with SwiftUI and need camera-based code scanning
- you want a simple drop-in scanner view with scan modes and simulator support

## When to avoid
- you need code scanning on Android or non-Apple platforms
- your app is not using SwiftUI
- you need to scan codes from images rather than a live camera feed

## Facets
- artifact type: library
- maturity: active
- function: ui-components, computer-vision, sdk
- domain: mobile-development, frontend, developer-tools
- platform: -
- tags: swiftui, qr-code, barcode-scanning, camera, avfoundation, ios, swift, mobile

## Member repositories
- twostraws/CodeScanner (main) score 64

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:02.785180+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:15:29.780175+00:00, confidence not recorded.
  - readme: https://github.com/twostraws/CodeScanner (fetched 2026-08-28T04:04:02.785180+00:00, sha cb0917ee754c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
