Skip to content

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

5 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages