-
Notifications
You must be signed in to change notification settings - Fork 376
Open
Description
lazy var scanView: SGScanView = {
let configure = SGScanViewConfigure()
configure.isShowBorder = true
configure.borderColor = .clear
configure.cornerColor = .white
configure.cornerWidth = 3
configure.cornerLength = 15
configure.isFromTop = true
configure.scanline = "SGQRCode.bundle/scan_scanline_qq"
configure.color = .clear
let x = 0.0 // 明确指定为CGFloat
let y = 0.0 // 明确指定为CGFloat
let w = self.view.frame.size.width
let h = self.view.frame.size.height
let scanView = SGScanView(frame: CGRect(x: x, y: y, width: w, height: h), configure: configure)
scanView?.startScanning()
scanView?.scanFrame = CGRect(x: 0, y: 0, width: w, height: h)
return scanView ?? SGScanView()
}() 通过cocopods 集成没显示扫描线 能看看初始化有什么问题吗
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels