Merge pull request #931 from AlphaWallet/do-not-show-detecting-token-in-button-immediately-when-add-token

Show "Done" instead of "Detecting token type" as button title in add custom token screen when it's first shown
pull/937/head
James Sangalli 6 years ago committed by GitHub
commit feea189255
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      AlphaWallet/Tokens/ViewControllers/NewTokenViewController.swift

@ -97,7 +97,8 @@ class NewTokenViewController: UIViewController, CanScanQRCode {
scrollView.addSubview(stackView)
saveButton.addTarget(self, action: #selector(addToken), for: .touchUpInside)
updateSaveButtonBasedOnTokenTypeDetected()
saveButton.isEnabled = true
saveButton.setTitle(R.string.localizable.done(), for: .normal)
let buttonsStackView = [saveButton].asStackView(distribution: .fillEqually, contentHuggingPriority: .required)
buttonsStackView.translatesAutoresizingMaskIntoConstraints = false

Loading…
Cancel
Save