Skip to content

Commit

Permalink
fix: Wait before showing alert
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippeWeidmann committed Aug 19, 2024
1 parent 978758c commit 07db99c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion login-Example/login-Example/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,10 @@ class ViewController: UIViewController, InfomaniakLoginDelegate, DeleteAccountDe
alertController.addAction(UIAlertAction(title: "OK", style: .default) { _ in
self.dismiss(animated: true, completion: nil)
})
present(alertController, animated: true, completion: nil)
Task {
try await Task.sleep(nanoseconds: 1_000_000_000)
self.present(alertController, animated: true, completion: nil)
}
}

@IBAction func refreshTokenConvert(_ sender: Any) {
Expand Down

0 comments on commit 07db99c

Please sign in to comment.