From a5b7abea0d133c04715542c1a35da60ad7b6167d Mon Sep 17 00:00:00 2001 From: Riley Testut Date: Thu, 2 Mar 2023 14:48:20 -0600 Subject: [PATCH] Fixes UIActivityIndicatorView.style deprecation warnings --- AltStore/Authentication/AuthenticationViewController.swift | 1 + AltStore/Browse/BrowseViewController.swift | 1 + AltStore/Components/PillButton.swift | 1 + AltStore/Settings/PatreonComponents.swift | 1 + 4 files changed, 4 insertions(+) diff --git a/AltStore/Authentication/AuthenticationViewController.swift b/AltStore/Authentication/AuthenticationViewController.swift index 9b7ef53c..48bc8205 100644 --- a/AltStore/Authentication/AuthenticationViewController.swift +++ b/AltStore/Authentication/AuthenticationViewController.swift @@ -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!] { diff --git a/AltStore/Browse/BrowseViewController.swift b/AltStore/Browse/BrowseViewController.swift index 87effb6f..857b0222 100644 --- a/AltStore/Browse/BrowseViewController.swift +++ b/AltStore/Browse/BrowseViewController.swift @@ -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. diff --git a/AltStore/Components/PillButton.swift b/AltStore/Components/PillButton.swift index d56ad137..be801112 100644 --- a/AltStore/Components/PillButton.swift +++ b/AltStore/Components/PillButton.swift @@ -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 diff --git a/AltStore/Settings/PatreonComponents.swift b/AltStore/Settings/PatreonComponents.swift index df0fb810..c744d837 100644 --- a/AltStore/Settings/PatreonComponents.swift +++ b/AltStore/Settings/PatreonComponents.swift @@ -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)