Skip to content

Commit

Permalink
Adjust syntax/indendation for constraints array
Browse files Browse the repository at this point in the history
  • Loading branch information
scannillo committed Dec 12, 2023
1 parent 8d73d4c commit 69bd6da
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions Demo/Application/Features/ShopperInsightsViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,16 @@ class ShopperInsightsViewController: PaymentButtonBaseViewController {
venmoButton.isEnabled = false
view.addSubview(venmoButton)

view.addConstraints([shopperInsightsButton.centerXAnchor.constraint(equalTo: view.centerXAnchor),
shopperInsightsButton.centerYAnchor.constraint(equalTo: view.centerYAnchor),
payPalVaultButton.centerXAnchor.constraint(equalTo: view.centerXAnchor),
payPalVaultButton.bottomAnchor.constraint(equalTo: payPalCheckoutButton.bottomAnchor, constant: -40),
payPalCheckoutButton.centerXAnchor.constraint(equalTo: view.centerXAnchor),
payPalCheckoutButton.bottomAnchor.constraint(equalTo: venmoButton.bottomAnchor, constant: -40),
venmoButton.centerXAnchor.constraint(equalTo: view.centerXAnchor),
venmoButton.bottomAnchor.constraint(equalTo: view.bottomAnchor, constant: -40)])
view.addConstraints([
shopperInsightsButton.centerXAnchor.constraint(equalTo: view.centerXAnchor),
shopperInsightsButton.centerYAnchor.constraint(equalTo: view.centerYAnchor),
payPalVaultButton.centerXAnchor.constraint(equalTo: view.centerXAnchor),
payPalVaultButton.bottomAnchor.constraint(equalTo: payPalCheckoutButton.bottomAnchor, constant: -40),
payPalCheckoutButton.centerXAnchor.constraint(equalTo: view.centerXAnchor),
payPalCheckoutButton.bottomAnchor.constraint(equalTo: venmoButton.bottomAnchor, constant: -40),
venmoButton.centerXAnchor.constraint(equalTo: view.centerXAnchor),
venmoButton.bottomAnchor.constraint(equalTo: view.bottomAnchor, constant: -40)
])
}

required init?(coder: NSCoder) {
Expand Down

0 comments on commit 69bd6da

Please sign in to comment.