ImageLayer

public class ImageLayer: CALayer

Subclass of CALayer that handles animating its contents.

  • Configures basic options for a CABasicAnimation.

    The options set in this method are favorable for the inner workings of C4’s animation behaviours. - parameter key: The identifier of the action. - returns: The object that provides the action for key.

    Declaration

    Swift

    public override func actionForKey(key: String) -> CAAction?

    Parameters

    key

    The identifier of the action.

    Return Value

    The object that provides the action for key.

  • The value of the receiver’s current rotation state. This value is cumulative, and can represent values beyong +/- π

    Declaration

    Swift

    public dynamic var rotation: Double
  • Initializes a new C4Layer

    Declaration

    Swift

    public override init()
  • Initializes a new C4Layer from a specified layer of any other type. - parameter layer: Another CALayer

    Declaration

    Swift

    public override init(layer: AnyObject)

    Parameters

    layer

    Another CALayer

  • Initializes a new C4Layer from data in a given unarchiver. - parameter coder: An unarchiver object.

    Declaration

    Swift

    public required init?(coder: NSCoder)

    Parameters

    coder

    An unarchiver object.

  • Sets a value for a given key. - parameter value: The value for the property identified by key. - parameter key: The name of one of the receiver’s properties

    Declaration

    Swift

    public override func setValue(value: AnyObject?, forKey key: String)

    Parameters

    value

    The value for the property identified by key.

    key

    The name of one of the receiver’s properties

  • Returns a Boolean indicating whether changes to the specified key require the layer to be redisplayed. - parameter key: A string that specifies an attribute of the layer. - returns: A Boolean indicating whether changes to the specified key require the layer to be redisplayed.

    Declaration

    Swift

    public override class func needsDisplayForKey(key: String) -> Bool

    Parameters

    key

    A string that specifies an attribute of the layer.

    Return Value

    A Boolean indicating whether changes to the specified key require the layer to be redisplayed.

  • Reloads the content of this layer. Do not call this method directly.

    Declaration

    Swift

    public override func display()