Skip to content
This repository has been archived by the owner on Mar 10, 2022. It is now read-only.

Commit

Permalink
Reverting back to QR
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris committed May 29, 2017
1 parent b08dd38 commit 32b6c83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion QRIO/QRIO.swift
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ open class QRInput: NSObject, AVCaptureMetadataOutputObjectsDelegate {
public extension UIImage {
public static func QRImageFrom(string: String, containingViewSize: CGSize? = nil, correctionLevel: String = "L") -> UIImage? {
let stringData = string.data(using: String.Encoding.isoLatin1)
let filter = CIFilter(name: "CICode128BarcodeGenerator")
let filter = CIFilter(name: "CIQRCodeGenerator")
filter?.setValue(stringData, forKey: "inputMessage")
filter?.setValue(correctionLevel, forKey: "inputCorrectionLevel")

Expand Down

0 comments on commit 32b6c83

Please sign in to comment.