[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

BarcodeView 100% bright and other view user Setting bright

License

Notifications You must be signed in to change notification settings

CMJunghoon/CMBarcodeBright

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.