+1 vote
100 views
asked in Swift by

Hi 

  I extended the CALayer but while assiging the delegate its throwing error .

Error:

Cannot assign value of type 'CALayer' to type 'CAAnimationDelegate?'

1 Answer

0 votes
answered by

Sample 

  class MKLayer: CALayer {

  }

  You will get error, TO ride off just add CAAnimationDelegate

  class MKLayer: CALayer,CAAnimationDelegate {

  }

Categories

...