Add demo account

pull/2/head
Michael Scoff 7 years ago
parent 7cbc4e0a85
commit 5c726261f2
  1. 14
      Trust/Wallet/CreateWalletViewController.swift

@ -26,6 +26,13 @@ class CreateWalletViewController: FormViewController {
title = viewModel.title
view.backgroundColor = .white
//Demo purpose
if isDebug() {
DispatchQueue.main.asyncAfter(deadline: .now() + 1) {
self.navigationItem.rightBarButtonItem = UIBarButtonItem(title: "Demo", style: .done, target: self, action: #selector(self.demo))
}
}
form = Section()
//+++ Section("New wallet")
@ -58,13 +65,6 @@ class CreateWalletViewController: FormViewController {
self.startImport()
}
<<< ButtonRow("Demo") {
$0.title = $0.tag
$0.hidden = Eureka.Condition(booleanLiteral: !isDebug())
}.onCellSelection { [unowned self] (_, _) in
self.demo()
}
+++ Section("")
+++ Section("")
+++ Section("")

Loading…
Cancel
Save