This repository was archived by the owner on Mar 10, 2022. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 260260 GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
261261 GCC_WARN_UNUSED_FUNCTION = YES;
262262 GCC_WARN_UNUSED_VARIABLE = YES;
263- IPHONEOS_DEPLOYMENT_TARGET = 9.3 ;
263+ IPHONEOS_DEPLOYMENT_TARGET = 8.0 ;
264264 MTL_ENABLE_DEBUG_INFO = YES;
265265 ONLY_ACTIVE_ARCH = YES;
266266 SDKROOT = iphoneos;
303303 GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
304304 GCC_WARN_UNUSED_FUNCTION = YES;
305305 GCC_WARN_UNUSED_VARIABLE = YES;
306- IPHONEOS_DEPLOYMENT_TARGET = 9.3 ;
306+ IPHONEOS_DEPLOYMENT_TARGET = 8.0 ;
307307 MTL_ENABLE_DEBUG_INFO = NO;
308308 SDKROOT = iphoneos;
309309 TARGETED_DEVICE_FAMILY = "1,2";
Original file line number Diff line number Diff line change 88
99import UIKit
1010import AVFoundation
11+ import CoreImage
1112
1213public class QRInput : NSObject , AVCaptureMetadataOutputObjectsDelegate {
1314 private var session : AVCaptureSession ?
@@ -97,7 +98,7 @@ public extension UIImage {
9798 }
9899
99100 let qrImage = resultImage. imageByApplyingTransform ( CGAffineTransformMakeScale ( scaleX, scaleY) )
100- let context = CIContext ( options : nil )
101+ let context = CIContext ( )
101102 if let tempImage: CGImageRef = context. createCGImage ( qrImage, fromRect: qrImage. extent) {
102103 return UIImage ( CGImage: tempImage)
103104 }
You can’t perform that action at this time.
0 commit comments