diff --git a/Signal/src/ViewControllers/Registration/OnboardingKeyPairViewController.swift b/Signal/src/ViewControllers/Registration/OnboardingKeyPairViewController.swift index f89ee16ed..c20b93e15 100644 --- a/Signal/src/ViewControllers/Registration/OnboardingKeyPairViewController.swift +++ b/Signal/src/ViewControllers/Registration/OnboardingKeyPairViewController.swift @@ -16,6 +16,10 @@ final class OnboardingKeyPairViewController : OnboardingBaseViewController { private lazy var explanationLabel: UILabel = { let result = createExplanationLabel(text: NSLocalizedString("Please save the seed below in a safe location. It can be used to restore your account if you lose access, or to migrate to a new device.", comment: "")) result.accessibilityIdentifier = "onboarding.keyPairStep.explanationLabel" + result.textColor = Theme.primaryColor + var fontTraits = result.font.fontDescriptor.symbolicTraits + fontTraits.insert(.traitBold) + result.font = UIFont(descriptor: result.font.fontDescriptor.withSymbolicTraits(fontTraits)!, size: result.font.pointSize) return result }() @@ -134,7 +138,9 @@ final class OnboardingKeyPairViewController : OnboardingBaseViewController { // MARK: General @objc private func enableCopyButton() { copyButton.isUserInteractionEnabled = true - copyButton.setTitle(NSLocalizedString("Copy", comment: "")) + UIView.transition(with: copyButton, duration: 0.25, options: .transitionCrossDissolve, animations: { + self.copyButton.setTitle(NSLocalizedString("Copy", comment: "")) + }, completion: nil) } // MARK: Updating @@ -149,7 +155,9 @@ final class OnboardingKeyPairViewController : OnboardingBaseViewController { case .restore: return NSLocalizedString("Restore", comment: "") } }() - self.registerOrRestoreButton.setTitle(registerOrRestoreButtonTitle) + UIView.transition(with: registerOrRestoreButton, duration: 0.25, options: .transitionCrossDissolve, animations: { + self.registerOrRestoreButton.setTitle(registerOrRestoreButtonTitle) + }, completion: nil) } private func updateKeyPair() { @@ -170,7 +178,9 @@ final class OnboardingKeyPairViewController : OnboardingBaseViewController { @objc private func copyMnemonic() { UIPasteboard.general.string = mnemonic copyButton.isUserInteractionEnabled = false - copyButton.setTitle(NSLocalizedString("Copied ✓", comment: "")) + UIView.transition(with: copyButton, duration: 0.25, options: .transitionCrossDissolve, animations: { + self.copyButton.setTitle(NSLocalizedString("Copied ✓", comment: "")) + }, completion: nil) Timer.scheduledTimer(timeInterval: 4, target: self, selector: #selector(enableCopyButton), userInfo: nil, repeats: false) } diff --git a/Signal/translations/en.lproj/Localizable.strings b/Signal/translations/en.lproj/Localizable.strings index 05697716b..15be147f7 100644 --- a/Signal/translations/en.lproj/Localizable.strings +++ b/Signal/translations/en.lproj/Localizable.strings @@ -2559,3 +2559,8 @@ "Restore" = "Restore"; "Enter Your Mnemonic" = "Enter Your Mnemonic"; "Restore Using Mnemonic" = "Restore Using Mnemonic"; +"Something went wrong. Please check your mnemonic and try again." = "Something went wrong. Please check your mnemonic and try again."; +"Looks like you didn't enter enough words. Please check your mnemonic and try again." = "Looks like you didn't enter enough words. Please check your mnemonic and try again."; +"You seem to be missing the last word of your mnemonic. Please check what you entered and try again." = "You seem to be missing the last word of your mnemonic. Please check what you entered and try again."; +"There appears to be an invalid word in your mnemonic. Please check what you entered and try again." = "There appears to be an invalid word in your mnemonic. Please check what you entered and try again."; +"Your mnemonic couldn't be verified. Please check what you entered and try again." = "Your mnemonic couldn't be verified. Please check what you entered and try again.";