Do you know if it's possible to present a toast message while alert is presented?
More specific, the alert contains a textfield and I want to present a toast with error message when textfield's value is over Integer's max value. So, when user gives me an incorrect value, I want to inform the user before he/she presses the alert button.
Can you help me?
There is no such a thing as
toastin nativeUIKitcomponents!So you can either use another
Alerton top of the previous one:Note: You may want to get rid of all
!s and make them safe as you wishOr create a new window with a level more than the
alertlike thestatusBar(or using libraries like this) and present it on top of the current window to achieve something like this:Note: window management is a large topic and beyond the scope of this question. I suggest you to start with simple approaches and then go for tough ones. You can start with this: