- BarcodeView Bright 100%
- Other View support user bright
- Control Center and Alert Control Support
- Home button Click Support
CMBarcodeBright is available through CocoaPods. To install it, simply add the following line to your 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)
}
- Barcode ViewContorller
viewDidLoad
CMBarcodeBright.shard.setBarcodeViewBright()
- Add close and backButton Method
CMBarcodeBright.shard.restoreBright()
CMBarcodeBright is available under the MIT license. See the LICENSE file for more info.