pull/68/head
Niels Andriesse 5 years ago
parent 75d43eab0d
commit fc8aee5d5e

@ -99,6 +99,13 @@ final class LandingVC : UIViewController, LinkDeviceVCDelegate, DeviceLinkingMod
view.addSubview(mainStackView) view.addSubview(mainStackView)
mainStackView.pin(to: view) mainStackView.pin(to: view)
topSpacer.heightAnchor.constraint(equalTo: bottomSpacer.heightAnchor, multiplier: 1).isActive = true topSpacer.heightAnchor.constraint(equalTo: bottomSpacer.heightAnchor, multiplier: 1).isActive = true
// Show device unlinked alert if needed
if UserDefaults.standard.bool(forKey: "wasUnlinked") {
let alert = UIAlertController(title: NSLocalizedString("Device Unlinked", comment: ""), message: NSLocalizedString("Your device was unlinked successfully", comment: ""), preferredStyle: .alert)
alert.addAction(UIAlertAction(title: NSLocalizedString("OK", comment: ""), accessibilityIdentifier: nil, style: .default, handler: nil))
present(alert, animated: true, completion: nil)
UserDefaults.removeAll()
}
} }
override func viewDidDisappear(_ animated: Bool) { override func viewDidDisappear(_ animated: Bool) {

@ -116,9 +116,9 @@ public class OnboardingController: NSObject {
} }
public func pushSeedVC(from viewController: UIViewController) { public func pushSeedVC(from viewController: UIViewController) {
AssertIsOnMainThread() // AssertIsOnMainThread()
let seedVC = SeedVC(onboardingController: self) // let seedVC = SeedVC(onboardingController: self)
viewController.navigationController?.pushViewController(seedVC, animated: true) // viewController.navigationController?.pushViewController(seedVC, animated: true)
} }
public func pushDisplayNameVC(from viewController: UIViewController) { public func pushDisplayNameVC(from viewController: UIViewController) {

Loading…
Cancel
Save