Skip to content

Commit c30bfe1

Browse files
committed
Allowing user to shrink the status bar.
1 parent e07a25d commit c30bfe1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

MTStatusBarOverlay.m

+3-1
Original file line numberDiff line numberDiff line change
@@ -1096,6 +1096,8 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
10961096

10971097
- (void)contentViewClicked:(UIGestureRecognizer *)gestureRecognizer {
10981098
if (gestureRecognizer.state == UIGestureRecognizerStateEnded) {
1099+
[self setShrinked:!self.shrinked animated:YES];
1100+
/*
10991101
// if we are currently in a special state, restore to normal
11001102
// and ignore current set animation in that case
11011103
if (self.shrinked) {
@@ -1118,7 +1120,7 @@ - (void)contentViewClicked:(UIGestureRecognizer *)gestureRecognizer {
11181120
break;
11191121
}
11201122
}
1121-
1123+
*/
11221124
if ([self.delegate respondsToSelector:@selector(statusBarOverlayDidRecognizeGesture:)]) {
11231125
[self.delegate statusBarOverlayDidRecognizeGesture:gestureRecognizer];
11241126
}

0 commit comments

Comments
 (0)