threading fix

This commit is contained in:
Pfeil, Scott Robert 2021-07-22 15:10:11 -04:00
parent cea16818cc
commit 69499bf049

View File

@ -1053,7 +1053,11 @@ CGFloat const PanelAnimationDuration = 0.2;
}
+ (CGFloat)getApplicationViewWidth {
return CGRectGetWidth([self getBounds:[MVMCoreUISession sharedGlobal].splitViewController.view.superview]);
__block CGFloat width;
[MVMCoreDispatchUtility performSyncBlockOnMainThread:^{
width = CGRectGetWidth([self getBounds:[MVMCoreUISession sharedGlobal].splitViewController.view.superview]);
}];
return width;
}
+ (CGFloat)getApplicationViewMaxSize {