<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.5.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "QuartzCore",
  "identifier" : "/documentation/QuartzCore/CAMediaTimingFunction/init(name:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Core Animation"
    ],
    "preciseIdentifier" : "c:objc(cs)CAMediaTimingFunction(cm)functionWithName:"
  },
  "title" : "init(name:)"
}
-->

# init(name:)

Creates and returns a new instance of `CAMediaTimingFunction` configured with the predefined timing function specified by `name`.

```
convenience init(name: CAMediaTimingFunctionName)
```

## Parameters

`name`

The timing function to use as specified in [Predefined Timing Functions](/documentation/QuartzCore/predefined-timing-functions).

## Return Value

A new instance of `CAMediaTimingFunction` with the timing function specified by `name`.

## See Also

  [Core Animation Programming Guide](https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/CoreAnimation_guide/Introduction/Introduction.html#//apple_ref/doc/uid/TP40004514)



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)