From 9796f57fcdcdfc8f6527488009968bbc47dd7ed6 Mon Sep 17 00:00:00 2001 From: Hwee-Boon Yar Date: Mon, 3 Jun 2024 10:56:05 +0800 Subject: [PATCH] SwiftFormat --- .../ViewControllers/ImportWalletViewController.swift | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/AlphaWallet/Wallet/ViewControllers/ImportWalletViewController.swift b/AlphaWallet/Wallet/ViewControllers/ImportWalletViewController.swift index a4ae76dd8..5d2a3b056 100644 --- a/AlphaWallet/Wallet/ViewControllers/ImportWalletViewController.swift +++ b/AlphaWallet/Wallet/ViewControllers/ImportWalletViewController.swift @@ -1,7 +1,9 @@ // Copyright © 2018 Stormbird PTE. LTD. -import UIKit import Combine +import UIKit +import UniformTypeIdentifiers + import AlphaWalletFoundation import AlphaWalletTrustWalletCoreExtensions @@ -101,7 +103,7 @@ class ImportWalletViewController: UIViewController { .spacer(height: DataEntry.Metric.TextField.Default.spaceFromTextFieldToStatusLabel), [.spacerWidth(DataEntry.Metric.shadowRadius), mnemonicTextView, .spacerWidth(DataEntry.Metric.shadowRadius)].asStackView(axis: .horizontal), .spacer(height: DataEntry.Metric.TextField.Default.spaceFromTextFieldToStatusLabel), - row2 + row2, ].asStackView(axis: .vertical, distribution: .fill) mnemonicControlsStackView.translatesAutoresizingMaskIntoConstraints = false @@ -219,7 +221,7 @@ class ImportWalletViewController: UIViewController { containerView.topAnchor.constraint(equalTo: tabBar.bottomAnchor), containerView.bottomAnchor.constraint(equalTo: footerBar.topAnchor), - footerBar.anchorsConstraint(to: view) + footerBar.anchorsConstraint(to: view), ]) configure() @@ -456,7 +458,7 @@ class ImportWalletViewController: UIViewController { alertController.addAction(UIAlertAction( title: R.string.localizable.importWalletImportAlertSheetOptionTitle(), style: .default - ) { [weak self] _ in + ) { [weak self] _ in self?.showDocumentPicker() }) alertController.addAction(UIAlertAction(title: R.string.localizable.cancel(), style: .cancel) { _ in }) @@ -593,7 +595,6 @@ extension ImportWalletViewController: UIDocumentPickerDelegate { } extension ImportWalletViewController: TextFieldDelegate { - func didScanQRCode(_ result: String) { setValueForCurrentField(string: result) }