I have been reading that Apple recommends to use block-based animations instead of CATransaction
Before, I was using this code to disable animations:
Swift 3+
UIView.performWithoutAnimation { // Update UI that you don't want to animate }