With QRKit you can easily create QR or bar codes in Swift

QRKit

With QRKit you can easily create QR or bar codes in Swift. You can choose foreground and background colors. The QR code you get simply as UIImage.

Features

  • Create QR Codes
  • Create bar codes
  • Change the foreground color
  • Change the background color
  • Automatic umlaut replacement

Installation

You can install QRKit with the Swift Package Manager.

let package = Package(
    dependencies: [
        .package(url: "https://github.com/Technikabo/QRKit.git", from: "1.0.0")
    ],
)

How To Use

1. Import QRKit

import QRKit

2. A string with the content

let dataString = "Hello, I am the developer of this framework."

3. UIImageView

qrImageView.image = generateQRCode(from: dataString, type: .qrCode, backroundColor: UIColor.opaqueSeparator, foregroundColor: UIColor.systemBlue)

GitHub

View Github