CMBarcodeBright 0.1.1

CMBarcodeBright 0.1.1

CMBarcodeBright 维护。



  • 作者:
  • Junghoon

CMBarcodeBright

CI Status Version License Platform

功能

  • BarcodeView 明亮 100%
  • 支持其他视图用户明亮
  • 控制中心和警报控制支持
  • 主页按钮点击支持

安装

CMBarcodeBright 通过 CocoaPods 提供。要安装它,只需将以下行添加到您的 Podfile:

pod 'CMBarcodeBright'

如何使用

  • Appdelegate.swift
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {

    // set user Bright
    CMBarcodeBright.shard.initBright()
    return true
    
}

func applicationWillResignActive(_ application: UIApplication) {
    // Call Home Button Pressed.
    // Call Control Center
    // Call Alert Control
    CMBarcodeBright.shard.applicationWillResignActive(targetClass: BarcodeViewController.self)
}

func applicationWillEnterForeground(_ application: UIApplication) {
    // From Background to foreground( your App )
    CMBarcodeBright.shard.applicationWillEnterForeground(targetClass: BarcodeViewController.self)
/
}

func applicationDidBecomeActive(_ application: UIApplication) {
    // Close Control Center and Alert Control
    CMBarcodeBright.shard.applicationDidBecomeActive(targetClass: BarcodeViewController.self)

}

  • 条码视图控制器
    • viewDidLoad CMBarcodeBright.shard.setBarcodeViewBright()
    • 添加关闭和后退按钮方法 CMBarcodeBright.shard.restoreBright()

作者

Junghoon

许可协议

CMBarcodeBright 在 MIT 许可协议下可用。有关更多信息,请参阅 LICENSE 文件。