Digital PCT265 story ONEAPP-7249 - Prevent SplitViewController forced layouts on every newDataBuildScreen update.
This commit is contained in:
parent
04581558e3
commit
9de1437edc
@ -839,12 +839,11 @@ CGFloat const PanelAnimationDuration = 0.2;
|
||||
|
||||
- (void)setBottomProgressBarProgress:(float)progress {
|
||||
[MVMCoreDispatchUtility performBlockOnMainThread:^{
|
||||
if (self.bottomProgressBarHeightConstraint.constant != PaddingOne) {
|
||||
self.bottomProgressBarHeightConstraint.constant = PaddingOne;
|
||||
[self.bottomProgressBar.superview layoutIfNeeded];
|
||||
}
|
||||
|
||||
if (progress > 0.05) {
|
||||
if (self.bottomProgressBarHeightConstraint.constant != PaddingOne) {
|
||||
self.bottomProgressBarHeightConstraint.constant = PaddingOne;
|
||||
[self.bottomProgressBar.superview layoutIfNeeded];
|
||||
}
|
||||
self.bottomProgressBar.progress = progress;
|
||||
} else {
|
||||
self.bottomProgressBarHeightConstraint.constant = 0;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user