Commit 8fbde3d6 by Daniel Dahan

development: updated default tintColor and titleColor of Button to Color.blue.base

parent de0f26a3
......@@ -104,6 +104,16 @@ open class Button: UIButton, Pulseable {
didSet {
setTitle(title, for: .normal)
setTitle(title, for: .highlighted)
guard nil != title else {
return
}
guard nil == titleColor else {
return
}
titleColor = Color.blue.base
}
}
......@@ -122,6 +132,7 @@ open class Button: UIButton, Pulseable {
*/
public required init?(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
tintColor = Color.blue.base
prepare()
}
......@@ -133,6 +144,7 @@ open class Button: UIButton, Pulseable {
*/
public override init(frame: CGRect) {
super.init(frame: frame)
tintColor = Color.blue.base
prepare()
}
......
......@@ -160,7 +160,7 @@ open class PageTabBarController: RootController {
prepare()
}
public init(viewControllers: [UIViewController], selectedIndex: Int) {
public init(viewControllers: [UIViewController], selectedIndex: Int = 0) {
isBounceEnabled = true
super.init(rootViewController: UIPageViewController(transitionStyle: .scroll, navigationOrientation: .horizontal, options: nil))
self.selectedIndex = selectedIndex
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment