mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
Adjusted toast timeout
This commit is contained in:
parent
36e9bdf745
commit
c99352f0b1
1 changed files with 1 additions and 2 deletions
|
|
@ -99,10 +99,9 @@ class VoipDialog : UIView{
|
|||
}
|
||||
|
||||
static func toast(message:String, timeout:CGFloat = 1.5) {
|
||||
let alertDisapperTimeInSeconds = 2.0
|
||||
let alert = UIAlertController(title: nil, message: message, preferredStyle: .actionSheet)
|
||||
rootVC()?.present(alert, animated: true)
|
||||
DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + alertDisapperTimeInSeconds) {
|
||||
DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + timeout) {
|
||||
alert.dismiss(animated: true)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue