There was an error while loading. Please reload this page.
2 parents 1de3617 + 082f660 commit 5735a11Copy full SHA for 5735a11
Objective-C/TOCropViewController/TOCropViewController.m
@@ -1290,7 +1290,7 @@ - (CGFloat)statusBarHeight
1290
// We do need to include the status bar height on devices
1291
// that have a physical hardware inset, like an iPhone X notch
1292
BOOL hardwareRelatedInset = self.view.safeAreaInsets.bottom > FLT_EPSILON
1293
- && UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone;
+ && UIDevice.currentDevice.userInterfaceIdiom == UIUserInterfaceIdiomPhone;
1294
1295
// Always have insetting on Mac Catalyst
1296
#if TARGET_OS_MACCATALYST
0 commit comments