Skip to content

Commit

Permalink
Fixed constants bug (#5201)
Browse files Browse the repository at this point in the history
* Fixed constants bug (closes #4807)

* Fixed constants bug (closes #4807)
  • Loading branch information
daveyjones authored and yogevbd committed Jun 20, 2019
1 parent 6334eef commit 663b1c3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/ios/Constants.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ + (CGFloat)statusBarHeight {
}

+ (CGFloat)bottomTabsHeight {
return CGRectGetHeight(((UITabBarController *)((UIWindow *)(UIApplication.sharedApplication.windows[0])).rootViewController).tabBar.frame);
@try {
return CGRectGetHeight(((UITabBarController *)((UIWindow *)(UIApplication.sharedApplication.windows[0])).rootViewController).tabBar.frame);
} @catch (NSException *exception) {
return 0;
}
}

@end

0 comments on commit 663b1c3

Please sign in to comment.