1

I need to disable animations for a specific view that gets animated because of its autolayout properties.

I cannot use this:

UIView.setAnimationsEnabled = false 

Because it breaks the animations of other views.

This didn't work either:

 override func layoutSubviews() {
        UIView.performWithoutAnimation {
            super.layoutSubviews()
        }
    }

Any ideas?

Lio
  • 4,225
  • 4
  • 33
  • 40

0 Answers0