Skip to content

Commit

Permalink
#fix issues #7
Browse files Browse the repository at this point in the history
  • Loading branch information
amisare committed Dec 26, 2018
1 parent a941a2d commit ef8e0ca
Showing 1 changed file with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,18 @@ - (instancetype)initWithNavigationBar:(UINavigationBar *)bar {

- (void)nn_startTransitionWithParams:(NSDictionary *)params {
UINavigationItem *item = [params objectForKey:@"item"];
self.bar.tintColor = [self nn_tintColorFromeBar:self.bar atItem:item];
UIColor *tintColor = [self nn_tintColorFromeBar:self.bar atItem:item];
if (tintColor) {
self.bar.tintColor = tintColor;
}
}

- (void)nn_endTransitionWithParams:(NSDictionary *)params {
UINavigationItem *item = [params objectForKey:@"item"];
self.bar.tintColor = [self nn_tintColorFromeBar:self.bar atItem:item];
UIColor *tintColor = [self nn_tintColorFromeBar:self.bar atItem:item];
if (tintColor) {
self.bar.tintColor = tintColor;
}
}

- (void)nn_updateInteractiveTransitionWithParams:(NSDictionary *)params {
Expand All @@ -48,7 +54,10 @@ - (void)nn_updateInteractiveTransitionWithParams:(NSDictionary *)params {

- (void)nn_endInteractiveTransitionWithParams:(NSDictionary *)params {
UINavigationItem *item = [params objectForKey:@"item"];
self.bar.tintColor = [self nn_tintColorFromeBar:self.bar atItem:item];
UIColor *tintColor = [self nn_tintColorFromeBar:self.bar atItem:item];
if (tintColor) {
self.bar.tintColor = tintColor;
}
}

#pragma clang diagnostic push
Expand Down

0 comments on commit ef8e0ca

Please sign in to comment.