Update UI
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// AppearenceManager.swift
|
||||
// Pods
|
||||
//
|
||||
// Created by Florian Gabach on 01/03/2017.
|
||||
//
|
||||
//
|
||||
|
||||
import UIKit
|
||||
|
||||
class AppearenceManager: NSObject {
|
||||
// White color : http://www.color-hex.com/color/ffffff
|
||||
static let whiteCustom = UIColor(red: 246/255.0, green: 246/255.0, blue: 246/255.0, alpha: 1.0)
|
||||
|
||||
// Black color : http://www.color-hex.com/color/000000
|
||||
static let black = UIColor.black
|
||||
}
|
||||
@@ -70,11 +70,13 @@ class OpenSourceViewController: UITableViewController {
|
||||
self.tableView.dataSource = self
|
||||
self.tableView.delegate = self
|
||||
self.tableView.separatorStyle = .singleLine
|
||||
self.tableView.backgroundColor = AppearenceManager.whiteCustom
|
||||
|
||||
// Close button (on the right corner of navigation bar)
|
||||
let closeButton = UIBarButtonItem(barButtonSystemItem: .stop,
|
||||
target: self,
|
||||
action: #selector(self.closePicker))
|
||||
closeButton.tintColor = AppearenceManager.black
|
||||
self.navigationItem.rightBarButtonItem = closeButton
|
||||
|
||||
// Loading indicator
|
||||
|
||||
Reference in New Issue
Block a user