CMBarcodeBright 0.1.1

CMBarcodeBright 0.1.1

Maintained by CMBarcodeBright.



  • By
  • Junghoon

CMBarcodeBright

CI Status Version License Platform

Features

  • BarcodeView Bright 100%
  • Other View support user bright
  • Control Center and Alert Control Support
  • Home button Click Support

Installation

CMBarcodeBright is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'CMBarcodeBright'

How to use

  • 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)

}

  • Barcode ViewContorller
    • viewDidLoad CMBarcodeBright.shard.setBarcodeViewBright()
    • Add close and backButton Method CMBarcodeBright.shard.restoreBright()

Author

Junghoon

License

CMBarcodeBright is available under the MIT license. See the LICENSE file for more info.