Commit 77bbca1a by Daniel Dahan

development: updated default backbutton color for NavigationController

parent c173989f
...@@ -136,12 +136,11 @@ extension NavigationController: UINavigationBarDelegate { ...@@ -136,12 +136,11 @@ extension NavigationController: UINavigationBarDelegate {
*/ */
public func navigationBar(_ navigationBar: UINavigationBar, shouldPush item: UINavigationItem) -> Bool { public func navigationBar(_ navigationBar: UINavigationBar, shouldPush item: UINavigationItem) -> Bool {
if let v = navigationBar as? NavigationBar { if let v = navigationBar as? NavigationBar {
let backButton = IconButton(image: v.backButtonImage, tintColor: Color.blue.base) let backButton = IconButton(image: v.backButtonImage, tintColor: Color.blueGrey.base)
backButton.pulseColor = Color.white
backButton.addTarget(self, action: #selector(handleBackButton), for: .touchUpInside) backButton.addTarget(self, action: #selector(handleBackButton), for: .touchUpInside)
item.leftControls.append(backButton)
item.backButton = backButton item.backButton = backButton
item.leftControls.append(backButton)
v.layoutNavigationItem(item: item) v.layoutNavigationItem(item: item)
} }
return true return true
......
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