Toast is not visible
Closed this issue · 3 comments
Toast is not visible when attempted to call the the below function
static func makeToast(message: String) {
Toast(text: message).show()
}
as debugged in Toast class it is evident that completion block to hide the toast is executing very fast. please find the below attached screenshot
but i can be able to observe this behaviour only for the first time of app launch
@Coeur could you please check this?
@devxoul may know more.
Since you said:
but i can be able to observe this behaviour only for the first time of app launch
Then try to delay your Toast until after applicationDidFinishLaunching:
?
Make sure you're on the latest commit from main/master branch.
Since there is a Demo app in the project, and that Demo app is not suffering from visibility issues, I'll close this issue.
Feel free to create a reproducible demo in order to re-open the issue.
===>Toast Starts Execution 2024-09-03 11:35:27 +0000 Duration: 2.0
===>Toast Ends Execution 2024-09-03 11:35:29 +0000 Duration: 2.0
===>Toast Starts Execution 2024-09-03 11:35:29 +0000 Duration: 2.0
===>Toast Ends Execution 2024-09-03 11:35:32 +0000 Duration: 2.0
===>Toast Starts Execution 2024-09-03 11:35:32 +0000 Duration: 3.5
===>Toast Ends Execution 2024-09-03 11:35:36 +0000 Duration: 3.5
===>Toast Starts Execution 2024-09-03 11:35:36 +0000 Duration: 5.0
===>Toast Ends Execution 2024-09-03 11:35:42 +0000 Duration: 5.0