Fixes UIActivityIndicatorView.style deprecation warnings

This commit is contained in:
Riley Testut
2023-03-02 14:48:20 -06:00
committed by Magesh K
parent 0a58a1fdc3
commit a5b7abea0d
4 changed files with 4 additions and 0 deletions

View File

@@ -32,6 +32,7 @@ final class AuthenticationViewController: UIViewController
super.viewDidLoad()
self.signInButton.activityIndicatorView.style = .medium
self.signInButton.activityIndicatorView.color = .white
for view in [self.appleIDBackgroundView!, self.passwordBackgroundView!, self.signInButton!]
{

View File

@@ -96,6 +96,7 @@ private extension BrowseViewController
cell.bannerView.button.addTarget(self, action: #selector(BrowseViewController.performAppAction(_:)), for: .primaryActionTriggered)
cell.bannerView.button.activityIndicatorView.style = .medium
cell.bannerView.button.activityIndicatorView.color = .white
// Explicitly set to false to ensure we're starting from a non-activity indicating state.
// Otherwise, cell reuse can mess up some cached values.

View File

@@ -95,6 +95,7 @@ final class PillButton: UIButton
self.contentEdgeInsets = UIEdgeInsets(top: Self.contentInsets.top, left: Self.contentInsets.leading, bottom: Self.contentInsets.bottom, right: Self.contentInsets.trailing)
self.activityIndicatorView.style = .medium
self.activityIndicatorView.color = .white
self.activityIndicatorView.isUserInteractionEnabled = false
self.progressView.progress = 0

View File

@@ -41,6 +41,7 @@ final class PatronsFooterView: UICollectionReusableView
self.button.translatesAutoresizingMaskIntoConstraints = false
self.button.activityIndicatorView.style = .medium
self.button.activityIndicatorView.color = .white
self.button.titleLabel?.textColor = .white
self.addSubview(self.button)