Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 633 Bytes

README.md

File metadata and controls

37 lines (28 loc) · 633 Bytes

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()
    }
}