GithubHelp home page GithubHelp logo

yushulx / ios-swiftui-camera-qr-code-scanner Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 22.88 MB

iOS barcdoe QR code scanner built with Dynamsoft Barcode Reader

Home Page: https://www.dynamsoft.com/codepool/ios-qr-code-scanner-swiftui-m1-mac.html

Ruby 8.84% Swift 91.16%
barcode datamatrix ios pdf417 qrcode swift swiftui

ios-swiftui-camera-qr-code-scanner's Introduction

iOS QR Code Scanner

The sample demonstrates how to quickly implement an iOS QR code scanner app using SwiftUI, Dynamsoft Camera Enhancer and Dynamsoft Barcode Reader.

Pre-requisites

  • Xcode 13.2.1

  • Dynamsoft Camera Enhancer 2.1.1

  • Dynamsoft Barcode Reader 8.9.1

    A valid license key is required for the barcode SDK. Click here to apply for a 30-day FREE Trial license.

Usage

  1. Install Dynamsoft Camera Enhancer and Dynamsoft Barcode Reader. Then open the project in Xcode:

    brew install cocoapods
    pod install
    open qrscanner.xcworkspace
  2. Open Signing & Capabilities editor to select a team.

  3. There is no Info.plist file in Xcode 13.2.1. You need to add the camera permission key to TARGETS > Info:

    Privacy - Camera Usage Description

    iOS camera access permission

  4. Set the license key in CameraManager.swift:

    barcodeReader = DynamsoftBarcodeReader.init(license: "LICENSE-KEY")
  5. Connect an iPhone or iPad to run the app.

    ios-swiftui-camera-qr-code-scanner.mp4

Blog

Building iOS QR Code Scanner with SwiftUI on M1 Mac

ios-swiftui-camera-qr-code-scanner's People

Contributors

yushulx avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.