Skip to content

Commit

Permalink
Address feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
jotaemepereira committed Feb 21, 2024
1 parent 78a33b0 commit a21fcd1
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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)
])
}

Expand Down

0 comments on commit a21fcd1

Please sign in to comment.