From a21fcd10e51132eb85eff7d46a2c122c14af05ba Mon Sep 17 00:00:00 2001 From: Juan Manuel Pereira Date: Wed, 21 Feb 2024 15:51:00 -0300 Subject: [PATCH] Address feedback --- .../UI/DataBrokerProtectionViewController.swift | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/LocalPackages/DataBrokerProtection/Sources/DataBrokerProtection/UI/DataBrokerProtectionViewController.swift b/LocalPackages/DataBrokerProtection/Sources/DataBrokerProtection/UI/DataBrokerProtectionViewController.swift index 2eeffe9661..ce258c3565 100644 --- a/LocalPackages/DataBrokerProtection/Sources/DataBrokerProtection/UI/DataBrokerProtectionViewController.swift +++ b/LocalPackages/DataBrokerProtection/Sources/DataBrokerProtection/UI/DataBrokerProtectionViewController.swift @@ -33,10 +33,6 @@ final public class DataBrokerProtectionViewController: NSViewController { private let openURLHandler: (URL?) -> Void private var reloadObserver: NSObjectProtocol? - private enum Consts { - static let loaderDimension: CGFloat = 50.0 - } - public init(scheduler: DataBrokerProtectionScheduler, dataManager: DataBrokerProtectionDataManaging, privacyConfig: PrivacyConfigurationManaging? = nil, @@ -100,13 +96,12 @@ final public class DataBrokerProtectionViewController: NSViewController { loader.controlSize = .regular loader.sizeToFit() loader.translatesAutoresizingMaskIntoConstraints = false + loader.controlSize = .large view.addSubview(loader) NSLayoutConstraint.activate([ loader.centerXAnchor.constraint(equalTo: view.centerXAnchor), loader.centerYAnchor.constraint(equalTo: view.centerYAnchor), - loader.widthAnchor.constraint(equalToConstant: Consts.loaderDimension), - loader.heightAnchor.constraint(equalToConstant: Consts.loaderDimension) ]) }