Digital PCT265 story ONEAPP-7249 - Prevent SplitViewController forced layouts on every newDataBuildScreen update.

This commit is contained in:
Hedden, Kyle Matthew 2024-05-08 20:36:17 -04:00
parent 04581558e3
commit 9de1437edc

View File

@ -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;