I have a login form that, when the user clicks on the submit button, I want to show a fullscreen modal with a white and slightly transparent background, and a spinner in the middle, while the app communicates with the server. I then want to hide that layout when the app gets a response from the server.
I have set up a view controller with the above layout (white background and spinner). However, I'm not sure how to show this view over the login view when the login button is clicked.
Here is the action I've made for the login button:
@IBAction func onSubmit(_ sender: Any) {
}
How do I show the view over the entire screen, that disables user interaction?