From 69bd6da7de5c907163016c6d32505ebbaf9ea441 Mon Sep 17 00:00:00 2001 From: Sammy Cannillo Date: Tue, 12 Dec 2023 11:13:11 -0600 Subject: [PATCH] Adjust syntax/indendation for constraints array --- .../ShopperInsightsViewController.swift | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/Demo/Application/Features/ShopperInsightsViewController.swift b/Demo/Application/Features/ShopperInsightsViewController.swift index 15b73c0139..07b9ac575e 100644 --- a/Demo/Application/Features/ShopperInsightsViewController.swift +++ b/Demo/Application/Features/ShopperInsightsViewController.swift @@ -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) {