         return UIImage(CIImage: qrImage)
         
     }
-}
+}
import UIKit
import AVFoundation

public class QRIn: NSObject, AVCaptureMetadataOutputObjectsDelegate {
    private var session: AVCaptureSession?
    private var previewLayer: AVCaptureVideoPreviewLayer?
    

    }
}


public extension UIImage {
    public static func QRImageFromString(string: String, containingViewSize: CGSize? = nil, correctionLevel: String = "L") -> UIImage? {
        let stringData = string.dataUsingEncoding(NSISOLatin1StringEncoding)
        let filter = CIFilter(name: "CIQRCodeGenerator")
