Skip to content

Commit

Permalink
Improved commenting
Browse files Browse the repository at this point in the history
  • Loading branch information
TimOliver committed Oct 6, 2018
1 parent 81e4bc5 commit a0cea0a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions TONavigationBar/TONavigationBar.m
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ - (void)layoutSubviews
// Ensure the separator is placed above the background view
[self insertSubview:self.separatorView atIndex:1];

// Extend the background view from the top of the screen to the bottom
// Because `UINavigationController` positions the bar below the
// status bar, extend the background view upwards to the top of the screen.
CGRect frame = self.bounds;
frame.origin.y = -(CGRectGetMinY(self.frame));
frame.size.height = CGRectGetMaxY(self.frame);
Expand All @@ -130,7 +131,7 @@ - (void)layoutSubviews
frame.size.height = _separatorHeight;
self.separatorView.frame = frame;

// As this method will be called at the start of each navigation item
// This method will be called at the start of each navigation item
// transition, by which point we will know if it needs to be surpressed
// for the next animation.

Expand Down

0 comments on commit a0cea0a

Please sign in to comment.