GithubHelp home page GithubHelp logo

swqrcode_swift's Introduction

SWQRCode_Swift

image

简书地址:iOS 高仿微信扫一扫

Objective - C版本地址:SWQRCode oc 版本

SWQRCode_SwiftSWQRCode swift 版本,高仿微信扫一扫功能,包括二维码/条码识别、相册图片二维码/条码识别、手电筒功能等,请使用真机进行测试。

SWQRCode_Swift 舍弃了 Timer 而采用 CABasicAnimation 实现扫一扫动画效果。

若需在项目中使用,只需将 SWQRCode 文件夹拖入项目中,并在 info.plist 中添加 Privacy - Photo Library Usage Description 以及 Privacy - Camera Usage Description 配置,声明相机相册权限。

SWQRCode_Swift 主要 API :

// MARK: - 扫一扫Api
extension SWQRCodeViewController {
    
    /// 处理扫一扫结果
    ///
    /// - Parameter value: 扫描结果
    func sw_handle(value: String) {
        print("sw_handle === \(value)")
    }
    
    /// 相册选取图片无法读取数据
    func sw_didReadFromAlbumFailed() {
        print("sw_didReadFromAlbumFailed")
    }
}

swqrcode_swift's People

Contributors

rockchanel avatar

Stargazers

 avatar  avatar feng_zhenrong avatar xiaolouxinyue avatar mymbrooks avatar Hu avatar  avatar  avatar  avatar private (set) var avatar  avatar ww avatar 灰s avatar Marvin avatar MauritzLueng avatar MolueJames avatar arrfu avatar 刘春牢 avatar greensoybean avatar  avatar  avatar 桂豪 avatar FanChason avatar  avatar hongwenwu avatar  avatar  avatar

Watchers

mymbrooks avatar  avatar

swqrcode_swift's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.