Create and scan QRCodes quick in SwiftUI.
import SwiftUI
import QRKit
struct ContentView: View {
var body: some View {
QRCode(data: "QRCodes are fun :D")
.padding()
}
}
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()
}
}