Conditionally set tintColor of navigation bar