You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I basically want to open the app and the ToastUI to be visible until some network requests are done in the background Disclaimer: I'm still new to SwiftUI so i might try to achieve this the wrong way
Your Environment
Swift Version: 5.5
Xcode Version: 13.4
Operating System Version: macOS Monteray 12.4
Device or Simulator: Irrelevant
The text was updated successfully, but these errors were encountered:
This is actually an issue, not because of your lack of SwiftUI understanding. SwiftUI presentations such as .sheet and .alert can be presented in onAppear, so I do expect ToastUI to follow the same behavior. I have found the culprit but not sure how to implement a fix yet.
I also found another bug where if you initialize the @State variable with true then ToastUI will not present the toast. For now, you can safely use DispatchQueue.main.async in onAppear as the workaround. Thanks for the report.
Pre-requisites:
Expected Behavior
Be able to show the ToastUI at app load. Useful when doing initial network requests like auth or other early tasks
Current Behavior
Currently the ToastUI does not appear
Steps to Reproduce
Context
I basically want to open the app and the ToastUI to be visible until some network requests are done in the background
Disclaimer: I'm still new to SwiftUI so i might try to achieve this the wrong way
Your Environment
The text was updated successfully, but these errors were encountered: