Add verbose mode

This commit is contained in:
Florian Gabach
2017-03-08 16:52:24 +01:00
parent 797b669aa1
commit ddca5365fc
6 changed files with 34 additions and 20 deletions
@@ -31,7 +31,7 @@ class ViewController: UIViewController {
let openSourceVC = OpenSourceController()
// Apply somre customisation if you want !
self.controllerCustomUI(controller: openSourceVC)
//self.controllerCustomUI(openSourceVC: openSourceVC)
// Init with LicenceFile object
openSourceVC.licences = [LicenceFile(title: "FacebookImagePicker",
@@ -47,26 +47,29 @@ class ViewController: UIViewController {
// Customization
fileprivate func controllerCustomUI(controller: OpenSourceController) {
fileprivate func controllerCustomUI(openSourceVC: OpenSourceController) {
// Navigation bar title
controller.config.title = "MyCustomTitle"
openSourceVC.config.title = "MyCustomTitle"
// Navigation bar tint color
controller.config.uiConfig.barTintColor = UIColor.red
openSourceVC.config.uiConfig.barTintColor = UIColor.red
// Close button color
controller.config.uiConfig.closeButtonColor = UIColor.white
openSourceVC.config.uiConfig.closeButtonColor = UIColor.white
// BackgroundColor
controller.config.uiConfig.backgroundColor = UIColor.red.withAlphaComponent(0.6)
openSourceVC.config.uiConfig.backgroundColor = UIColor.red.withAlphaComponent(0.6)
// Licence text color
controller.config.uiConfig.licenceTextColor = UIColor.white
openSourceVC.config.uiConfig.licenceTextColor = UIColor.white
// Navigation bar title color
controller.config.uiConfig.titleColor = UIColor.white
openSourceVC.config.uiConfig.titleColor = UIColor.white
// Licence cell background color
controller.config.uiConfig.licenceBackgroundColor = UIColor.red
openSourceVC.config.uiConfig.licenceBackgroundColor = UIColor.red
// Verbose mode
openSourceVC.config.verbose = true
}
}