Add FAQ link into settings

pull/2/head
Michael Scoff 7 years ago
parent 71ef161c8a
commit 06e77afd60
  1. 21
      Trust/Assets.xcassets/settings_faq.imageset/Contents.json
  2. BIN
      Trust/Assets.xcassets/settings_faq.imageset/settings_faq.png
  3. 10
      Trust/Settings/ViewControllers/SettingsViewController.swift

@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "settings_faq.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

@ -196,13 +196,21 @@ class SettingsViewController: FormViewController {
}
<<< AppFormAppearance.button { button in
button.title = NSLocalizedString("settings.emailUs.button.title", value: "Email Us", comment: "")
button.title = NSLocalizedString("settings.emailUsReadFAQ.button.title", value: "Email Us (Read FAQ first)", comment: "")
}.onCellSelection { _, _ in
self.sendUsEmail()
}.cellSetup { cell, _ in
cell.imageView?.image = R.image.settings_email()
}
+++ Section(NSLocalizedString("settings.learnMore.label.title", value: "Learn More", comment: ""))
<<< link(
title: NSLocalizedString("settings.faq.button.title", value: "FAQ", comment: ""),
value: "https://trustwalletapp.com/faq.html",
image: R.image.settings_faq()
)
<<< link(
title: NSLocalizedString("settings.privacyPolicy.button.title", value: "Privacy Policy", comment: ""),
value: "https://trustwalletapp.com/privacy-policy.html",

Loading…
Cancel
Save