Skip to content

FlorianHubl/QRKit

Repository files navigation

QRKit

Create and scan QRCodes quick in SwiftUI.

Creating QR Code

import SwiftUI
import QRKit

struct ContentView: View {
    var body: some View {
        QRCode(data: "QRCodes are fun :D")
            .padding()
    }
}

Scanning QR Code

Make sure that you enable the camera in the settings.

import SwiftUI
import QRKit

struct ContentView: View {
    var body: some View {
            QRScannerView(refreshRate: 1) { qr in
                print(qr)
            }
        .ignoresSafeArea()
    }
}

About

Create and scan QRCodes quick in SwiftUI.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages