Selaa lähdekoodia

Fixes setDrawBehindTabBar unnecessary call to setExtendedLayoutIncludesOpaqueBars

yogevbd 6 vuotta sitten
vanhempi
commit
67d3d10754
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1
    1
      lib/ios/UIViewController+RNNOptions.m

+ 1
- 1
lib/ios/UIViewController+RNNOptions.m Näytä tiedosto

@@ -56,6 +56,7 @@ const NSInteger BLUR_STATUS_TAG = 78264801;
56 56
 
57 57
 - (void)rnn_setDrawBehindTopBar:(BOOL)drawBehind {
58 58
 	if (drawBehind) {
59
+		[self setExtendedLayoutIncludesOpaqueBars:YES];
59 60
 		self.edgesForExtendedLayout |= UIRectEdgeTop;
60 61
 	} else {
61 62
 		self.edgesForExtendedLayout &= ~UIRectEdgeTop;
@@ -67,7 +68,6 @@ const NSInteger BLUR_STATUS_TAG = 78264801;
67 68
 		[self setExtendedLayoutIncludesOpaqueBars:YES];
68 69
 		self.edgesForExtendedLayout |= UIRectEdgeBottom;
69 70
 	} else {
70
-		[self setExtendedLayoutIncludesOpaqueBars:NO];
71 71
 		self.edgesForExtendedLayout &= ~UIRectEdgeBottom;
72 72
 	}
73 73
 }