From 6925775883df280d5692a8085575fb4345d92417 Mon Sep 17 00:00:00 2001 From: Josh Heald Date: Fri, 25 Nov 2022 09:41:25 +0000 Subject: [PATCH] 8222 Make Preparing Reader background one color MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On the Preparing Reader modal, the borders of the hosting controller view can be bigger than the spinner view itself – this is the case on iPad. It was observed that in dark mode, this shows with two black bars, above and below the spinner. This changes the background specifier to be on the hosting controller’s view, not the spinner contained within it, which corrects the background color issue. --- .../CardPresentPaymentsModalViewController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WooCommerce/Classes/ViewRelated/CardPresentPayments/CardPresentPaymentsModalViewController.swift b/WooCommerce/Classes/ViewRelated/CardPresentPayments/CardPresentPaymentsModalViewController.swift index 30dd4aec703..b1131263a4c 100644 --- a/WooCommerce/Classes/ViewRelated/CardPresentPayments/CardPresentPaymentsModalViewController.swift +++ b/WooCommerce/Classes/ViewRelated/CardPresentPayments/CardPresentPaymentsModalViewController.swift @@ -104,8 +104,8 @@ private extension CardPresentPaymentsModalViewController { func createLoadingIndicator() { let loadingIndicator = ProgressView() .progressViewStyle(IndefiniteCircularProgressViewStyle(size: 96.0)) - .background(Color(.tertiarySystemBackground)) let host = ConstraintsUpdatingHostingController(rootView: loadingIndicator) + host.view.backgroundColor = .tertiarySystemBackground add(host) guard let index = mainStackView.arrangedSubviews.firstIndex(of: imageView) else {