Fixes UIActivityIndicatorView.style deprecation warnings

This commit is contained in:
Riley Testut
2023-03-02 14:48:20 -06:00
parent 1ccfa6652a
commit 1255147844
4 changed files with 8 additions and 4 deletions

View File

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

View File

@@ -94,7 +94,8 @@ private extension BrowseViewController
cell.bannerView.iconImageView.isIndicatingActivity = true
cell.bannerView.button.addTarget(self, action: #selector(BrowseViewController.performAppAction(_:)), for: .primaryActionTriggered)
cell.bannerView.button.activityIndicatorView.style = .white
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

@@ -88,7 +88,8 @@ class PillButton: UIButton
self.layer.masksToBounds = true
self.accessibilityTraits.formUnion([.updatesFrequently, .button])
self.activityIndicatorView.style = .white
self.activityIndicatorView.style = .medium
self.activityIndicatorView.color = .white
self.activityIndicatorView.isUserInteractionEnabled = false
self.progressView.progress = 0

View File

@@ -40,7 +40,8 @@ class PatronsFooterView: UICollectionReusableView
super.init(frame: frame)
self.button.translatesAutoresizingMaskIntoConstraints = false
self.button.activityIndicatorView.style = .white
self.button.activityIndicatorView.style = .medium
self.button.activityIndicatorView.color = .white
self.button.titleLabel?.textColor = .white
self.addSubview(self.button)