Skip to content

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

@CNDEVE

Description

@CNDEVE
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 集成没显示扫描线 能看看初始化有什么问题吗

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions