Toast-Swift icon indicating copy to clipboard operation
Toast-Swift copied to clipboard

Toast is getting shown behind the view controller

Open nishchal-v opened this issue 3 years ago • 2 comments

when you show a toast and navigate to another view controller the toast is overshadowed by navigating view controller

nishchal-v avatar Nov 24 '21 08:11 nishchal-v

You should handle this case yourself. e.g. You can hide all toast in that view first before navigating to another view controller,

TJRoger avatar Dec 10 '21 06:12 TJRoger

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.

ubuntudroid avatar Feb 01 '22 16:02 ubuntudroid