I am new iOS programming and now am fascinated in using MaterialComponents which provide by google. Now i facing one problem in component named Dialog.
When the view has been pop up on screen when i touch outside that pop up view and then that view has been dismiss. I don't want that to happen in my app.
I don't want user to click outside popup view to dismiss that popup view. What i want i just want user to click on action button that i provide for user's choice then the view should be dismiss when click on that action button only.
Really glade that you help.
MDCAlertControlleris inherited fromUIViewController.So, in order to restrict user to click outside
MDCAlertControlleryou have to access its property namedviewand thensuperview?.subviews[0].isUserInteractionEnabled = falseI have completed one example using MDCAlertController