I need that when I click on an option in a side menu, the user's interaction is disabled until the view is loaded.
If you do not block it, the view is loaded as many times as clicks have been made on the menu.
I've tried this:
UIApplication.shared.beginIgnoringInteractionEvents()
but it does not work