use progressTintColor to prevent progress bar losing color when overlaid.

This commit is contained in:
Kyle Matthew Hedden 2020-10-20 17:04:53 -04:00
parent 185b5aafe7
commit d07dff8a2a

View File

@ -878,7 +878,7 @@ CGFloat const PanelAnimationDuration = 0.2;
// Create bottom progress bar
UIProgressView *progressView = [[UIProgressView alloc] initWithProgressViewStyle:UIProgressViewStyleDefault];
progressView.translatesAutoresizingMaskIntoConstraints = NO;
progressView.tintColor = [UIColor mfTomatoRed];
progressView.progressTintColor = [UIColor mfTomatoRed];
[self.view addSubview:progressView];
self.bottomProgressBar = progressView;
[NSLayoutConstraint constraintWithItem:progressView attribute:NSLayoutAttributeLeft relatedBy:NSLayoutRelationEqual toItem:mainView attribute:NSLayoutAttributeLeft multiplier:1.0 constant:0].active = YES;