COVIDSafe code from version 1.14 (#27)

This commit is contained in:
COVIDSafe Support 2020-11-09 16:51:00 -08:00 committed by GitHub
parent 3ea83834f5
commit cf93ea43c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
29 changed files with 370 additions and 141 deletions

View file

@ -72,17 +72,15 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
@objc
func jwtExpired(_ notification: Notification) {
DispatchQueue.main.async {
guard let regVC = UIStoryboard(name: "Main", bundle: nil).instantiateViewController(withIdentifier: "onboardingStep3") as? PhoneNumberViewController else {
guard let regVC = UIStoryboard(name: "Main", bundle: nil).instantiateViewController(withIdentifier: "personalDetails") as? PersonalDetailsViewController else {
return
}
regVC.reauthenticating = true
regVC.modalPresentationStyle = .overFullScreen
regVC.modalTransitionStyle = .coverVertical
let navigationController = UINavigationController(rootViewController: regVC)
navigationController.setToolbarHidden(true, animated: false)
if #available(iOS 13.0, *) {
navigationController.isModalInPresentation = true
}
navigationController.isNavigationBarHidden = true
navigationController.modalPresentationStyle = .overFullScreen
navigationController.modalTransitionStyle = .coverVertical
self.window?.topmostPresentedViewController?.present(navigationController, animated: true, completion: nil)
}
}