iOS Developer Library

Developer

QuartzCore Framework Reference CAAnimationGroup Class Reference

Options
Deployment Target:

On This Page
Language:

CAAnimationGroup

Inherits From


Conforms To


Import Statement


Swift

import QuartzCore

Objective-C

@import QuartzCore;

Availability


Available in iOS 2.0 and later

CAAnimationGroup allows multiple animations to be grouped and run concurrently. The grouped animations run in the time space specified by the CAAnimationGroup instance.

The duration of the grouped animations are not scaled to the duration of their CAAnimationGroup. Instead, the animations are clipped to the duration of the animation group. For example, a 10 second animation grouped within an animation group with a duration of 5 seconds will only display the first 5 seconds of the animation.

  • An array of CAAnimation objects to be evaluated in the time space of the receiver.

    Declaration

    Swift

    var animations: [AnyObject]!

    Objective-C

    @property(copy) NSArray *animations

    Discussion

    The animations run concurrently in the receiver’s time space.

    Import Statement

    Objective-C

    @import QuartzCore;

    Swift

    import QuartzCore

    Availability

    Available in iOS 2.0 and later