Update UI

This commit is contained in:
Florian Gabach
2017-03-03 10:30:10 +01:00
parent f201595937
commit 8ee9fdbbc2
2 changed files with 19 additions and 0 deletions
@@ -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