One Logo Pool Ball
AVFoundation · IOS API REFERENCE

AVVideoCompositionLayerInstruction.Configuration

struct · iOS 26.0+ · SDK 27.1

struct Configuration

Configurable properties for initializing a new AVVideoCompositionLayerInstruction instance.

Members (13)

init · iOS 26.0+

init

TypeScript
static initAssetTrack(assetTrack: AVAssetTrack): AVVideoCompositionLayerInstruction_Configuration
Swift declaration
init(assetTrack: AVAssetTrack)

Creates a new video composition layer instruction for the given track.

method · iOS 26.0+

setOpacity

TypeScript
setOpacity(opacity: number, time: _CoreMedia_CMTime): void
Swift declaration
mutating func setOpacity(_ opacity: Float, at time: CMTime)

Sets the opacity value at a specific time within the time range of the instruction.

method · iOS 26.0+

opacityRamp

TypeScript
opacityRamp(time: _CoreMedia_CMTime): (AVVideoCompositionLayerInstruction_OpacityRamp) | null
Swift declaration
func opacityRamp(at time: CMTime) -> AVVideoCompositionLayerInstruction.OpacityRamp?

Obtains the opacity ramp that includes a specified time.

method · iOS 26.0+

setTransform

TypeScript
setTransform(transform: _CoreFoundation_CGAffineTransform, time: _CoreMedia_CMTime): void
Swift declaration
mutating func setTransform(_ transform: CGAffineTransform, at time: CMTime)

Sets the transform value at a time within the time range of the instruction.

method · iOS 26.0+

transformRamp

TypeScript
transformRamp(time: _CoreMedia_CMTime): (AVVideoCompositionLayerInstruction_TransformRamp) | null
Swift declaration
func transformRamp(at time: CMTime) -> AVVideoCompositionLayerInstruction.TransformRamp?

Obtains the transform ramp that includes a specified time.

method · iOS 26.0+

addOpacityRamp

TypeScript
addOpacityRamp(ramp: AVVideoCompositionLayerInstruction_OpacityRamp): void
Swift declaration
mutating func addOpacityRamp(_ ramp: AVVideoCompositionLayerInstruction.OpacityRamp)

Sets an opacity ramp to apply during a specified time range.

method · iOS 26.0+

addTransformRamp

TypeScript
addTransformRamp(ramp: AVVideoCompositionLayerInstruction_TransformRamp): void
Swift declaration
mutating func addTransformRamp(_ ramp: AVVideoCompositionLayerInstruction.TransformRamp)

Sets a transform ramp to apply during a given time range.

method · iOS 26.0+

setCropRectangle

TypeScript
setCropRectangle(rect: { x: number; y: number; width: number; height: number }, time: _CoreMedia_CMTime): void
Swift declaration
mutating func setCropRectangle(_ rect: CGRect, at time: CMTime)

Sets the crop rectangle value at a time within the time range of the instruction.

method · iOS 26.0+

cropRectangleRamp

TypeScript
cropRectangleRamp(time: _CoreMedia_CMTime): (AVVideoCompositionLayerInstruction_CropRectangleRamp) | null
Swift declaration
func cropRectangleRamp(at time: CMTime) -> AVVideoCompositionLayerInstruction.CropRectangleRamp?

Obtains the crop rectangle ramp that includes the specified time.

method · iOS 26.0+

addCropRectangleRamp

TypeScript
addCropRectangleRamp(ramp: AVVideoCompositionLayerInstruction_CropRectangleRamp): void
Swift declaration
mutating func addCropRectangleRamp(_ ramp: AVVideoCompositionLayerInstruction.CropRectangleRamp)

Sets a crop rectangle ramp to apply during the specified time range.

init · iOS 26.0+

init

TypeScript
static initTrackID(trackID?: number): AVVideoCompositionLayerInstruction_Configuration
Swift declaration
init(trackID: CMPersistentTrackID = .zero)

Creates a new video composition layer instruction for the given track ID.

get · iOS 26.0+

trackID

TypeScript
get trackID(): number
Swift declaration
var trackID: CMPersistentTrackID { get set }

The track identifier of the source track to which the compositor will apply the instruction.

set · iOS 26.0+

trackID

TypeScript
set trackID(value: number)
Swift declaration
var trackID: CMPersistentTrackID { get set }

The track identifier of the source track to which the compositor will apply the instruction.

Skipped declarations

No declarations were skipped in this snapshot.

All AVFoundation types →