     }
 }
 
-public enum QROut {
+
+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")

        return UIImage(CIImage: qrImage)
        
    }
}

import UIKit
import AVFoundation

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