I am doing a project where i am creating a view with animation. While view is being created, i want to disable the touch in every view in view controller. so i did the following code.
private func addInScrollView(){
self.view.userInteractionEnabled = false
createCardView()
self.view.userInteractionEnabled = true
}
But the touch is not being disabled. How to accomplished this task?