Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

通过cocopods 集成没显示扫描线 #186

Open
CNDEVE opened this issue Feb 22, 2024 · 0 comments
Open

通过cocopods 集成没显示扫描线 #186

CNDEVE opened this issue Feb 22, 2024 · 0 comments

Comments

@CNDEVE
Copy link

CNDEVE commented Feb 22, 2024

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 集成没显示扫描线 能看看初始化有什么问题吗
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant