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 { ...@@ -104,6 +104,16 @@ open class Button: UIButton, Pulseable {
didSet { didSet {
setTitle(title, for: .normal) setTitle(title, for: .normal)
setTitle(title, for: .highlighted) 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 { ...@@ -122,6 +132,7 @@ open class Button: UIButton, Pulseable {
*/ */
public required init?(coder aDecoder: NSCoder) { public required init?(coder aDecoder: NSCoder) {
super.init(coder: aDecoder) super.init(coder: aDecoder)
tintColor = Color.blue.base
prepare() prepare()
} }
...@@ -133,6 +144,7 @@ open class Button: UIButton, Pulseable { ...@@ -133,6 +144,7 @@ open class Button: UIButton, Pulseable {
*/ */
public override init(frame: CGRect) { public override init(frame: CGRect) {
super.init(frame: frame) super.init(frame: frame)
tintColor = Color.blue.base
prepare() prepare()
} }
......
...@@ -160,7 +160,7 @@ open class PageTabBarController: RootController { ...@@ -160,7 +160,7 @@ open class PageTabBarController: RootController {
prepare() prepare()
} }
public init(viewControllers: [UIViewController], selectedIndex: Int) { public init(viewControllers: [UIViewController], selectedIndex: Int = 0) {
isBounceEnabled = true isBounceEnabled = true
super.init(rootViewController: UIPageViewController(transitionStyle: .scroll, navigationOrientation: .horizontal, options: nil)) super.init(rootViewController: UIPageViewController(transitionStyle: .scroll, navigationOrientation: .horizontal, options: nil))
self.selectedIndex = selectedIndex 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