diff --git a/UnstoppableWallet/UnstoppableWallet.xcodeproj/project.pbxproj b/UnstoppableWallet/UnstoppableWallet.xcodeproj/project.pbxproj index aa4d006d4b..11a123cdfd 100644 --- a/UnstoppableWallet/UnstoppableWallet.xcodeproj/project.pbxproj +++ b/UnstoppableWallet/UnstoppableWallet.xcodeproj/project.pbxproj @@ -10946,7 +10946,7 @@ GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; INFOPLIST_FILE = UnstoppableWallet/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 14.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -11018,7 +11018,7 @@ GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; INFOPLIST_FILE = UnstoppableWallet/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 14.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", diff --git a/UnstoppableWallet/UnstoppableWallet/Modules/Coin/CoinMarkets/CoinMarketsViewController.swift b/UnstoppableWallet/UnstoppableWallet/Modules/Coin/CoinMarkets/CoinMarketsViewController.swift index c017e6a189..3fa5ce478c 100644 --- a/UnstoppableWallet/UnstoppableWallet/Modules/Coin/CoinMarkets/CoinMarketsViewController.swift +++ b/UnstoppableWallet/UnstoppableWallet/Modules/Coin/CoinMarkets/CoinMarketsViewController.swift @@ -60,9 +60,7 @@ class CoinMarketsViewController: ThemeViewController { maker.edges.equalToSuperview() } - if #available(iOS 15.0, *) { - tableView.sectionHeaderTopPadding = 0 - } + tableView.sectionHeaderTopPadding = 0 tableView.separatorStyle = .none tableView.backgroundColor = .clear diff --git a/UnstoppableWallet/UnstoppableWallet/Modules/Coin/Ranks/CoinRankViewController.swift b/UnstoppableWallet/UnstoppableWallet/Modules/Coin/Ranks/CoinRankViewController.swift index 4c3e05a52a..2f764c2371 100644 --- a/UnstoppableWallet/UnstoppableWallet/Modules/Coin/Ranks/CoinRankViewController.swift +++ b/UnstoppableWallet/UnstoppableWallet/Modules/Coin/Ranks/CoinRankViewController.swift @@ -38,9 +38,7 @@ class CoinRankViewController: ThemeViewController { maker.edges.equalToSuperview() } - if #available(iOS 15.0, *) { - tableView.sectionHeaderTopPadding = 0 - } + tableView.sectionHeaderTopPadding = 0 tableView.separatorStyle = .none tableView.backgroundColor = .clear tableView.sectionDataSource = self diff --git a/UnstoppableWallet/UnstoppableWallet/Modules/Coin/Treasuries/CoinTreasuriesViewController.swift b/UnstoppableWallet/UnstoppableWallet/Modules/Coin/Treasuries/CoinTreasuriesViewController.swift index 18cac94a03..3ac777b9fe 100644 --- a/UnstoppableWallet/UnstoppableWallet/Modules/Coin/Treasuries/CoinTreasuriesViewController.swift +++ b/UnstoppableWallet/UnstoppableWallet/Modules/Coin/Treasuries/CoinTreasuriesViewController.swift @@ -42,9 +42,7 @@ class CoinTreasuriesViewController: ThemeViewController { maker.edges.equalToSuperview() } - if #available(iOS 15.0, *) { - tableView.sectionHeaderTopPadding = 0 - } + tableView.sectionHeaderTopPadding = 0 tableView.allowsSelection = false tableView.separatorStyle = .none tableView.backgroundColor = .clear diff --git a/UnstoppableWallet/UnstoppableWallet/Modules/ContactBook/ContactBookSettings/ContactBookSettingsViewController.swift b/UnstoppableWallet/UnstoppableWallet/Modules/ContactBook/ContactBookSettings/ContactBookSettingsViewController.swift index 94f4aa793e..ce3079d383 100644 --- a/UnstoppableWallet/UnstoppableWallet/Modules/ContactBook/ContactBookSettings/ContactBookSettingsViewController.swift +++ b/UnstoppableWallet/UnstoppableWallet/Modules/ContactBook/ContactBookSettings/ContactBookSettingsViewController.swift @@ -152,13 +152,9 @@ class ContactBookSettingsViewController: ThemeViewController { private func onTapRestore() { let documentPicker: UIDocumentPickerViewController - if #available(iOS 14.0, *) { - let types = UTType.types(tag: "json", tagClass: UTTagClass.filenameExtension, conformingTo: nil) - documentPicker = UIDocumentPickerViewController(forOpeningContentTypes: types) - } else { - documentPicker = UIDocumentPickerViewController(documentTypes: ["*.json"], in: .import) - } + let types = UTType.types(tag: "json", tagClass: UTTagClass.filenameExtension, conformingTo: nil) + documentPicker = UIDocumentPickerViewController(forOpeningContentTypes: types) documentPicker.delegate = self documentPicker.allowsMultipleSelection = false present(documentPicker, animated: true, completion: nil) diff --git a/UnstoppableWallet/UnstoppableWallet/Modules/EvmPrivateKey/EvmPrivateKeyViewController.swift b/UnstoppableWallet/UnstoppableWallet/Modules/EvmPrivateKey/EvmPrivateKeyViewController.swift index bd3808f032..03b7c15366 100644 --- a/UnstoppableWallet/UnstoppableWallet/Modules/EvmPrivateKey/EvmPrivateKeyViewController.swift +++ b/UnstoppableWallet/UnstoppableWallet/Modules/EvmPrivateKey/EvmPrivateKeyViewController.swift @@ -34,9 +34,7 @@ class EvmPrivateKeyViewController: ThemeViewController { maker.leading.top.trailing.equalToSuperview() } - if #available(iOS 15.0, *) { - tableView.sectionHeaderTopPadding = 0 - } + tableView.sectionHeaderTopPadding = 0 tableView.backgroundColor = .clear tableView.separatorStyle = .none diff --git a/UnstoppableWallet/UnstoppableWallet/Modules/ExtendedKey/ExtendedKeyViewController.swift b/UnstoppableWallet/UnstoppableWallet/Modules/ExtendedKey/ExtendedKeyViewController.swift index 0431fd3ffa..c0d570b70c 100644 --- a/UnstoppableWallet/UnstoppableWallet/Modules/ExtendedKey/ExtendedKeyViewController.swift +++ b/UnstoppableWallet/UnstoppableWallet/Modules/ExtendedKey/ExtendedKeyViewController.swift @@ -39,9 +39,7 @@ class ExtendedKeyViewController: ThemeViewController { maker.leading.top.trailing.equalToSuperview() } - if #available(iOS 15.0, *) { - tableView.sectionHeaderTopPadding = 0 - } + tableView.sectionHeaderTopPadding = 0 tableView.backgroundColor = .clear tableView.separatorStyle = .none tableView.sectionDataSource = self diff --git a/UnstoppableWallet/UnstoppableWallet/Modules/Faq/FaqViewController.swift b/UnstoppableWallet/UnstoppableWallet/Modules/Faq/FaqViewController.swift index e6683ee895..e5c70e3010 100644 --- a/UnstoppableWallet/UnstoppableWallet/Modules/Faq/FaqViewController.swift +++ b/UnstoppableWallet/UnstoppableWallet/Modules/Faq/FaqViewController.swift @@ -43,9 +43,7 @@ class FaqViewController: ThemeViewController { maker.edges.equalToSuperview() } - if #available(iOS 15.0, *) { - tableView.sectionHeaderTopPadding = 0 - } + tableView.sectionHeaderTopPadding = 0 tableView.separatorStyle = .none tableView.backgroundColor = .clear tableView.sectionDataSource = self diff --git a/UnstoppableWallet/UnstoppableWallet/Modules/Guides/GuidesViewController.swift b/UnstoppableWallet/UnstoppableWallet/Modules/Guides/GuidesViewController.swift index 9b9bec00ce..707f15d5e3 100644 --- a/UnstoppableWallet/UnstoppableWallet/Modules/Guides/GuidesViewController.swift +++ b/UnstoppableWallet/UnstoppableWallet/Modules/Guides/GuidesViewController.swift @@ -41,9 +41,7 @@ class GuidesViewController: ThemeViewController { maker.edges.equalToSuperview() } - if #available(iOS 15.0, *) { - tableView.sectionHeaderTopPadding = 0 - } + tableView.sectionHeaderTopPadding = 0 tableView.separatorStyle = .none tableView.backgroundColor = .clear diff --git a/UnstoppableWallet/UnstoppableWallet/Modules/ManageAccount/EvmAddress/EvmAddressViewController.swift b/UnstoppableWallet/UnstoppableWallet/Modules/ManageAccount/EvmAddress/EvmAddressViewController.swift index 88b3c4b7cc..2da19135b9 100644 --- a/UnstoppableWallet/UnstoppableWallet/Modules/ManageAccount/EvmAddress/EvmAddressViewController.swift +++ b/UnstoppableWallet/UnstoppableWallet/Modules/ManageAccount/EvmAddress/EvmAddressViewController.swift @@ -32,9 +32,7 @@ class EvmAddressViewController: ThemeViewController { maker.leading.top.trailing.equalToSuperview() } - if #available(iOS 15.0, *) { - tableView.sectionHeaderTopPadding = 0 - } + tableView.sectionHeaderTopPadding = 0 tableView.backgroundColor = .clear tableView.separatorStyle = .none tableView.sectionDataSource = self diff --git a/UnstoppableWallet/UnstoppableWallet/Modules/Market/MarketList/MarketListViewController.swift b/UnstoppableWallet/UnstoppableWallet/Modules/Market/MarketList/MarketListViewController.swift index 412dbf6054..f0c93d25ca 100644 --- a/UnstoppableWallet/UnstoppableWallet/Modules/Market/MarketList/MarketListViewController.swift +++ b/UnstoppableWallet/UnstoppableWallet/Modules/Market/MarketList/MarketListViewController.swift @@ -59,9 +59,7 @@ class MarketListViewController: ThemeViewController { maker.edges.equalToSuperview() } - if #available(iOS 15.0, *) { - tableView.sectionHeaderTopPadding = 0 - } + tableView.sectionHeaderTopPadding = 0 tableView.separatorStyle = .none tableView.backgroundColor = .clear diff --git a/UnstoppableWallet/UnstoppableWallet/Modules/Nft/NftViewController.swift b/UnstoppableWallet/UnstoppableWallet/Modules/Nft/NftViewController.swift index 466f986b64..6b75a8de22 100644 --- a/UnstoppableWallet/UnstoppableWallet/Modules/Nft/NftViewController.swift +++ b/UnstoppableWallet/UnstoppableWallet/Modules/Nft/NftViewController.swift @@ -44,9 +44,7 @@ class NftViewController: ThemeViewController { maker.edges.equalToSuperview() } - if #available(iOS 15.0, *) { - tableView.sectionHeaderTopPadding = 0 - } + tableView.sectionHeaderTopPadding = 0 tableView.separatorStyle = .none tableView.backgroundColor = .clear diff --git a/UnstoppableWallet/UnstoppableWallet/Modules/NftAsset/Overview/NftAssetOverviewViewController.swift b/UnstoppableWallet/UnstoppableWallet/Modules/NftAsset/Overview/NftAssetOverviewViewController.swift index c3cfe9853b..89e60fad4a 100644 --- a/UnstoppableWallet/UnstoppableWallet/Modules/NftAsset/Overview/NftAssetOverviewViewController.swift +++ b/UnstoppableWallet/UnstoppableWallet/Modules/NftAsset/Overview/NftAssetOverviewViewController.swift @@ -69,9 +69,7 @@ class NftAssetOverviewViewController: ThemeViewController { maker.edges.equalToSuperview() } - if #available(iOS 15.0, *) { - tableView.sectionHeaderTopPadding = 0 - } + tableView.sectionHeaderTopPadding = 0 tableView.separatorStyle = .none tableView.backgroundColor = .clear diff --git a/UnstoppableWallet/UnstoppableWallet/Modules/NftCollection/Activity/NftActivityViewController.swift b/UnstoppableWallet/UnstoppableWallet/Modules/NftCollection/Activity/NftActivityViewController.swift index de9ebead20..1ed455a5ad 100644 --- a/UnstoppableWallet/UnstoppableWallet/Modules/NftCollection/Activity/NftActivityViewController.swift +++ b/UnstoppableWallet/UnstoppableWallet/Modules/NftCollection/Activity/NftActivityViewController.swift @@ -56,9 +56,7 @@ class NftActivityViewController: ThemeViewController { maker.leading.trailing.bottom.equalToSuperview() } - if #available(iOS 15.0, *) { - tableView.sectionHeaderTopPadding = 0 - } + tableView.sectionHeaderTopPadding = 0 tableView.separatorStyle = .none tableView.backgroundColor = .clear diff --git a/UnstoppableWallet/UnstoppableWallet/Modules/RecoveryPhrase/RecoveryPhraseViewController.swift b/UnstoppableWallet/UnstoppableWallet/Modules/RecoveryPhrase/RecoveryPhraseViewController.swift index fe1ef95c90..568fb2488c 100644 --- a/UnstoppableWallet/UnstoppableWallet/Modules/RecoveryPhrase/RecoveryPhraseViewController.swift +++ b/UnstoppableWallet/UnstoppableWallet/Modules/RecoveryPhrase/RecoveryPhraseViewController.swift @@ -34,9 +34,7 @@ class RecoveryPhraseViewController: ThemeViewController { maker.leading.top.trailing.equalToSuperview() } - if #available(iOS 15.0, *) { - tableView.sectionHeaderTopPadding = 0 - } + tableView.sectionHeaderTopPadding = 0 tableView.backgroundColor = .clear tableView.separatorStyle = .none diff --git a/UnstoppableWallet/UnstoppableWallet/Modules/RestoreAccount/RestoreType/RestoreTypeViewController.swift b/UnstoppableWallet/UnstoppableWallet/Modules/RestoreAccount/RestoreType/RestoreTypeViewController.swift index 66ff5eeb7f..d58a304951 100644 --- a/UnstoppableWallet/UnstoppableWallet/Modules/RestoreAccount/RestoreType/RestoreTypeViewController.swift +++ b/UnstoppableWallet/UnstoppableWallet/Modules/RestoreAccount/RestoreType/RestoreTypeViewController.swift @@ -39,9 +39,7 @@ class RestoreTypeViewController: ThemeViewController { maker.edges.equalToSuperview() } - if #available(iOS 15.0, *) { - tableView.sectionHeaderTopPadding = 0 - } + tableView.sectionHeaderTopPadding = 0 tableView.backgroundColor = .clear tableView.separatorStyle = .none @@ -152,12 +150,8 @@ class RestoreTypeViewController: ThemeViewController { case .cloudRestore: viewController = RestoreCloudModule.viewController(returnViewController: returnViewController) case .fileRestore: let documentPicker: UIDocumentPickerViewController - if #available(iOS 14.0, *) { - let types = UTType.types(tag: "json", tagClass: UTTagClass.filenameExtension, conformingTo: nil) - documentPicker = UIDocumentPickerViewController(forOpeningContentTypes: types) - } else { - documentPicker = UIDocumentPickerViewController(documentTypes: ["*.json"], in: .import) - } + let types = UTType.types(tag: "json", tagClass: UTTagClass.filenameExtension, conformingTo: nil) + documentPicker = UIDocumentPickerViewController(forOpeningContentTypes: types) documentPicker.delegate = self documentPicker.allowsMultipleSelection = false diff --git a/UnstoppableWallet/UnstoppableWallet/Modules/Swap/SwapViewController.swift b/UnstoppableWallet/UnstoppableWallet/Modules/Swap/SwapViewController.swift index 6ddc2ced62..c181cc8950 100644 --- a/UnstoppableWallet/UnstoppableWallet/Modules/Swap/SwapViewController.swift +++ b/UnstoppableWallet/UnstoppableWallet/Modules/Swap/SwapViewController.swift @@ -45,9 +45,7 @@ class SwapViewController: ThemeViewController { maker.edges.equalToSuperview() } - if #available(iOS 15.0, *) { - tableView.sectionHeaderTopPadding = 0 - } + tableView.sectionHeaderTopPadding = 0 tableView.separatorStyle = .none tableView.backgroundColor = .clear tableView.sectionDataSource = self diff --git a/UnstoppableWallet/UnstoppableWallet/Modules/SwitchAccount/SwitchAccountViewController.swift b/UnstoppableWallet/UnstoppableWallet/Modules/SwitchAccount/SwitchAccountViewController.swift index 5acebfef0a..9c1bb656e3 100644 --- a/UnstoppableWallet/UnstoppableWallet/Modules/SwitchAccount/SwitchAccountViewController.swift +++ b/UnstoppableWallet/UnstoppableWallet/Modules/SwitchAccount/SwitchAccountViewController.swift @@ -44,9 +44,7 @@ class SwitchAccountViewController: ThemeActionSheetController { maker.bottom.equalToSuperview() } - if #available(iOS 15.0, *) { - tableView.sectionHeaderTopPadding = 0 - } + tableView.sectionHeaderTopPadding = 0 tableView.sectionDataSource = self tableView.buildSections() diff --git a/UnstoppableWallet/UnstoppableWallet/Modules/Transactions/TransactionsViewController.swift b/UnstoppableWallet/UnstoppableWallet/Modules/Transactions/TransactionsViewController.swift index 47ff7fde9d..ccf333c4f1 100644 --- a/UnstoppableWallet/UnstoppableWallet/Modules/Transactions/TransactionsViewController.swift +++ b/UnstoppableWallet/UnstoppableWallet/Modules/Transactions/TransactionsViewController.swift @@ -44,9 +44,7 @@ class TransactionsViewController: ThemeViewController { view.addSubview(tableView) tableView.backgroundColor = .clear - if #available(iOS 15.0, *) { - tableView.sectionHeaderTopPadding = 0 - } + tableView.sectionHeaderTopPadding = 0 tableView.separatorStyle = .none tableView.backgroundColor = .clear diff --git a/UnstoppableWallet/UnstoppableWallet/Modules/Wallet/Token/WalletTokenViewController.swift b/UnstoppableWallet/UnstoppableWallet/Modules/Wallet/Token/WalletTokenViewController.swift index f0e626ed23..dde404ca11 100644 --- a/UnstoppableWallet/UnstoppableWallet/Modules/Wallet/Token/WalletTokenViewController.swift +++ b/UnstoppableWallet/UnstoppableWallet/Modules/Wallet/Token/WalletTokenViewController.swift @@ -36,9 +36,7 @@ class WalletTokenViewController: ThemeViewController { } tableView.backgroundColor = .clear - if #available(iOS 15.0, *) { - tableView.sectionHeaderTopPadding = 0 - } + tableView.sectionHeaderTopPadding = 0 tableView.separatorStyle = .none tableView.backgroundColor = .clear tableView.tableFooterView = UIView(frame: .zero) diff --git a/UnstoppableWallet/UnstoppableWallet/Modules/Wallet/TokenList/WalletTokenListViewController.swift b/UnstoppableWallet/UnstoppableWallet/Modules/Wallet/TokenList/WalletTokenListViewController.swift index 67a77f6ea5..32cec63e69 100644 --- a/UnstoppableWallet/UnstoppableWallet/Modules/Wallet/TokenList/WalletTokenListViewController.swift +++ b/UnstoppableWallet/UnstoppableWallet/Modules/Wallet/TokenList/WalletTokenListViewController.swift @@ -43,9 +43,7 @@ class WalletTokenListViewController: ThemeSearchViewController { } tableView.backgroundColor = .clear - if #available(iOS 15.0, *) { - tableView.sectionHeaderTopPadding = 0 - } + tableView.sectionHeaderTopPadding = 0 tableView.separatorStyle = .none tableView.showsVerticalScrollIndicator = false tableView.tableFooterView = UIView(frame: .zero) diff --git a/UnstoppableWallet/UnstoppableWallet/Modules/Wallet/WalletViewController.swift b/UnstoppableWallet/UnstoppableWallet/Modules/Wallet/WalletViewController.swift index 65371796d9..ac54a8b87c 100644 --- a/UnstoppableWallet/UnstoppableWallet/Modules/Wallet/WalletViewController.swift +++ b/UnstoppableWallet/UnstoppableWallet/Modules/Wallet/WalletViewController.swift @@ -59,9 +59,7 @@ class WalletViewController: ThemeViewController { override func viewDidLoad() { super.viewDidLoad() - if #available(iOS 15.0, *) { - tableView.sectionHeaderTopPadding = 0 - } + tableView.sectionHeaderTopPadding = 0 navigationItem.largeTitleDisplayMode = .never navigationItem.backBarButtonItem = UIBarButtonItem(title: "", style: .plain, target: nil, action: nil)