Toast-Swift
Toast-Swift copied to clipboard
Toast is getting shown behind the view controller
when you show a toast and navigate to another view controller the toast is overshadowed by navigating view controller
You should handle this case yourself. e.g. You can hide all toast in that view first before navigating to another view controller,
Just use your UIView
's parent.view
or even better navigationController?.view
(which in most cases will be the same) to render the toast. Then it will stay visible across navigation.