Skip to content

Commit

Permalink
fix(ios): Ti.UI.Window.barColor cannot be changed after it was appeared
Browse files Browse the repository at this point in the history
  • Loading branch information
vijaysingh-axway committed Apr 29, 2020
1 parent cf4cc22 commit 84a0930
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,12 @@ - (void)setBarColor:(id)color
UINavigationBar *navBar = [[controller navigationController] navigationBar];
[navBar setBarStyle:navBarStyle];
[navBar setBarTintColor:barColor];
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 130000
if ([self shouldUseNavBarApperance]) {
navBar.standardAppearance.backgroundColor = barColor;
navBar.scrollEdgeAppearance.backgroundColor = barColor;
}
#endif
[self refreshBackButton];
}
}
Expand Down

0 comments on commit 84a0930

Please sign in to comment.