---
title: "getTransformRamp(for:start:end:timeRange:)"
framework: avfoundation
role: symbol
role_heading: Instance Method
path: "avfoundation/avvideocompositionlayerinstruction/gettransformramp(for:start:end:timerange:)"
---

# getTransformRamp(for:start:end:timeRange:)

Obtains the transform ramp that includes a specified time.

## Declaration

```swift
func getTransformRamp(for time: CMTime, start startTransform: UnsafeMutablePointer<CGAffineTransform>?, end endTransform: UnsafeMutablePointer<CGAffineTransform>?, timeRange: UnsafeMutablePointer<CMTimeRange>?) -> Bool
```

## Parameters

- `time`: If a ramp with a time range that contains the specified time has been set, information about the effective ramp for that time is supplied. Otherwise, information about the first ramp that starts after the specified time is supplied.
- `startTransform`: A pointer to a float to receive the starting transform value for the transform ramp. This value may be NULL.
- `endTransform`: A pointer to a float to receive the ending transform value for the transform ramp. This value may be NULL.
- `timeRange`: A pointer to a CMTimeRange to receive the time range of the transform ramp. This value may be NULL.

## Return Value

Return Value true if values are returned successfully, otherwise false. false is returned if time is beyond the duration of the last transform ramp that has been set.

## See Also

### Getting opacity, transform, and cropping ramps

- [cropRectangleRamp(at:)](avfoundation/avvideocompositionlayerinstruction/croprectangleramp(at:).md)
- [AVVideoCompositionLayerInstruction.CropRectangleRamp](avfoundation/avvideocompositionlayerinstruction/croprectangleramp.md)
- [getCropRectangleRamp(for:startCropRectangle:endCropRectangle:timeRange:)](avfoundation/avvideocompositionlayerinstruction/getcroprectangleramp(for:startcroprectangle:endcroprectangle:timerange:).md)
- [opacityRamp(at:)](avfoundation/avvideocompositionlayerinstruction/opacityramp(at:).md)
- [AVVideoCompositionLayerInstruction.OpacityRamp](avfoundation/avvideocompositionlayerinstruction/opacityramp.md)
- [getOpacityRamp(for:startOpacity:endOpacity:timeRange:)](avfoundation/avvideocompositionlayerinstruction/getopacityramp(for:startopacity:endopacity:timerange:).md)
- [transformRamp(at:)](avfoundation/avvideocompositionlayerinstruction/transformramp(at:).md)
- [AVVideoCompositionLayerInstruction.TransformRamp](avfoundation/avvideocompositionlayerinstruction/transformramp.md)
