diff --git a/UnstoppableWallet/UnstoppableWallet.xcodeproj/project.pbxproj b/UnstoppableWallet/UnstoppableWallet.xcodeproj/project.pbxproj index 2dc3834e51..034d22d00f 100644 --- a/UnstoppableWallet/UnstoppableWallet.xcodeproj/project.pbxproj +++ b/UnstoppableWallet/UnstoppableWallet.xcodeproj/project.pbxproj @@ -12835,7 +12835,7 @@ repositoryURL = "https://github.com/horizontalsystems/TonKit.Swift"; requirement = { kind = exactVersion; - version = 1.0.7; + version = 1.0.8; }; }; 6BF66DD82BA1A73300963242 /* XCRemoteSwiftPackageReference "ObjectMapper" */ = { diff --git a/UnstoppableWallet/UnstoppableWallet/Assets.xcassets/Icons/uwt_24.imageset/Contents.json b/UnstoppableWallet/UnstoppableWallet/Assets.xcassets/Icons/uwt_24.imageset/Contents.json new file mode 100644 index 0000000000..5df1989624 --- /dev/null +++ b/UnstoppableWallet/UnstoppableWallet/Assets.xcassets/Icons/uwt_24.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "uwt2@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "uwt2@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/UnstoppableWallet/UnstoppableWallet/Assets.xcassets/Icons/uwt_24.imageset/uwt2@2x.png b/UnstoppableWallet/UnstoppableWallet/Assets.xcassets/Icons/uwt_24.imageset/uwt2@2x.png new file mode 100644 index 0000000000..1ac94993bc Binary files /dev/null and b/UnstoppableWallet/UnstoppableWallet/Assets.xcassets/Icons/uwt_24.imageset/uwt2@2x.png differ diff --git a/UnstoppableWallet/UnstoppableWallet/Assets.xcassets/Icons/uwt_24.imageset/uwt2@3x.png b/UnstoppableWallet/UnstoppableWallet/Assets.xcassets/Icons/uwt_24.imageset/uwt2@3x.png new file mode 100644 index 0000000000..e3d37fb9c3 Binary files /dev/null and b/UnstoppableWallet/UnstoppableWallet/Assets.xcassets/Icons/uwt_24.imageset/uwt2@3x.png differ diff --git a/UnstoppableWallet/UnstoppableWallet/Core/Providers/AppConfig.swift b/UnstoppableWallet/UnstoppableWallet/Core/Providers/AppConfig.swift index c65ca262f6..9f3bfea206 100644 --- a/UnstoppableWallet/UnstoppableWallet/Core/Providers/AppConfig.swift +++ b/UnstoppableWallet/UnstoppableWallet/Core/Providers/AppConfig.swift @@ -15,6 +15,7 @@ enum AppConfig { static let appGitHubRepository = "unstoppable-wallet-ios" static let appTwitterAccount = "unstoppablebyhs" static let appTelegramAccount = "unstoppable_announcements" + static let appTokenTelegramAccount = "BeUnstoppable_bot" static let mempoolSpaceUrl = "https://mempool.space" static let guidesIndexUrl = URL(string: "https://raw.githubusercontent.com/horizontalsystems/blockchain-crypto-guides/v1.2/index.json")! static let faqIndexUrl = URL(string: "https://raw.githubusercontent.com/horizontalsystems/unstoppable-wallet-website/master/src/faq.json")! diff --git a/UnstoppableWallet/UnstoppableWallet/Modules/Settings/Main/MainSettingsViewController.swift b/UnstoppableWallet/UnstoppableWallet/Modules/Settings/Main/MainSettingsViewController.swift index 10c6dde717..3c870a1e28 100644 --- a/UnstoppableWallet/UnstoppableWallet/Modules/Settings/Main/MainSettingsViewController.swift +++ b/UnstoppableWallet/UnstoppableWallet/Modules/Settings/Main/MainSettingsViewController.swift @@ -211,6 +211,10 @@ class MainSettingsViewController: ThemeViewController { stat(page: .settings, event: .open(page: .donate)) } + private func onTokenTapped() { + UrlManager.open(url: "https://t.me/\(AppConfig.appTokenTelegramAccount)") + } + private var accountRows: [RowProtocol] { [ StaticRow( @@ -453,6 +457,23 @@ class MainSettingsViewController: ThemeViewController { ] } + private var tokenRows: [RowProtocol] { + [ + tableView.universalRow48( + id: "token", + image: .local(UIImage(named: "uwt_24")?.withTintColor(.themeJacob)), + title: .body("settings.get_your_tokens".localized), + accessoryType: .disclosure, + autoDeselect: true, + isFirst: true, + isLast: true, + action: { [weak self] in + self?.onTokenTapped() + } + ), + ] + } + private var footerRows: [RowProtocol] { [ StaticRow( @@ -522,7 +543,8 @@ class MainSettingsViewController: ThemeViewController { extension MainSettingsViewController: SectionsDataSource { func buildSections() -> [SectionProtocol] { var sections: [SectionProtocol] = [ - Section(id: "account", headerState: .margin(height: AppConfig.donateEnabled ? .margin32 : .margin12), rows: accountRows), + Section(id: "token", headerState: .margin(height: AppConfig.donateEnabled ? .margin32 : .margin12), rows: tokenRows), + Section(id: "account", headerState: .margin(height: .margin32), rows: accountRows), Section(id: "appearance_settings", headerState: .margin(height: .margin32), footerState: .margin(height: .margin24), rows: appearanceRows), Section( id: "social", diff --git a/UnstoppableWallet/UnstoppableWallet/en.lproj/Localizable.strings b/UnstoppableWallet/UnstoppableWallet/en.lproj/Localizable.strings index dce9e1f65d..c5293128f7 100644 --- a/UnstoppableWallet/UnstoppableWallet/en.lproj/Localizable.strings +++ b/UnstoppableWallet/UnstoppableWallet/en.lproj/Localizable.strings @@ -1307,6 +1307,7 @@ "settings.contact_us" = "Contact Us"; "settings.social_networks.label" = "Be Unstoppable"; "settings.social_networks.footer" = "Learn and master crypto via exclusive videos. Get to know us informally. Be the first to see things we work on."; +"settings.get_your_tokens" = "Get Your Tokens"; // Settings -> Base Currency