Skip to content

Commit 6925775

Browse files
committed
8222 Make Preparing Reader background one color
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.
1 parent 6d8fb05 commit 6925775

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WooCommerce/Classes/ViewRelated/CardPresentPayments/CardPresentPaymentsModalViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ private extension CardPresentPaymentsModalViewController {
104104
func createLoadingIndicator() {
105105
let loadingIndicator = ProgressView()
106106
.progressViewStyle(IndefiniteCircularProgressViewStyle(size: 96.0))
107-
.background(Color(.tertiarySystemBackground))
108107
let host = ConstraintsUpdatingHostingController(rootView: loadingIndicator)
108+
host.view.backgroundColor = .tertiarySystemBackground
109109
add(host)
110110

111111
guard let index = mainStackView.arrangedSubviews.firstIndex(of: imageView) else {

0 commit comments

Comments
 (0)