0Pricing
Swift Academy · Lesson

Implicit and Explicit Animations

Animate layer properties with CABasicAnimation.

Two Ways to Animate Layers

Core Animation offers implicit animations (automatic on property change) and explicit animations (you create an animation object).

Knowing both, and how they interact, is key to smooth motion.

Implicit Animations

Changing an animatable property of a standalone layer triggers an implicit animation using a default 0.25s curve—no animation object required.

let layer = CALayer()
// Later, this animates automatically:
layer.opacity = 0.0

All lessons in this course

  1. CALayer Fundamentals
  2. Implicit and Explicit Animations
  3. Transforms and 3D Effects
  4. Custom Drawing with Core Graphics
← Back to Swift Academy