Swiftpack.co - aliaslab-1984/IDSQRKit as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by aliaslab-1984.
aliaslab-1984/IDSQRKit 1.0.10
A small package that helps to handle QR code scanning on iOS.
⭐️ 1
🕓 1 year ago
iOS
.package(url: "https://github.com/aliaslab-1984/IDSQRKit.git", from: "1.0.10")

IDSQRKit

This package aim to help you to set up a QRScanner in no time! It works perfectly on UIKit and SwiftUI!

To start using the SDK on UIKit:

import IDSQRKit

// The shouldDismiss, tells to the viewController if, whenever it finds a match it should dismiss or not.
let scanController = QRCapturerViewController(shouldDismiss: true)

In order to receive the scanned text, you should provide an object that conforms to QRDataSource like so:


scanController.delegate = self

// ...

func didGet(qrData: String) {
    print("I got this string from the QR Code: \(qrData)")
}

That's it! Happy Scanning!

To start using the SDK on SwiftUI:

struct YourView: View {
    
    @Binding private var scannedText: String = ""
    
    var body: some View {
        QRScanView(scannedText: $scannedText)
    }
    
}

That's it, easy right ?! That's it! Happy Scanning!

GitHub

link
Stars: 1
Last commit: 1 year ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

Fixes possible UI unresponsiveness.
1 year ago

As the title says, this release aims to fix a hang risk warning that started to appear with XCode 14 when starting or stopping an AVCaptureSession.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics