1

I am currently working with CABasic Animations on CALayers in Swift.

What is the difference between CATransaction.setValue(kCFBooleanTrue, forKey:kCATransactionDisableActions) and CATransaction.setDisableActions(true)?

Razattax
  • 163
  • 1
  • 1
  • 12

1 Answers1

2

From docs on .setDisableActions:

This is a convenience method that invokes setValue(_:forKey:) with an NSNumber containing a true for the kCATransactionDisableActions key.

So, they basically do the same thing. Former is the KVC-way of doing it.

Ozgur Vatansever
  • 49,246
  • 17
  • 84
  • 119