<!--
{
  "availability" : [
    "iOS: 5.0.0 -",
    "iPadOS: 5.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.8.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVVideoCompositionValidationHandling/videoComposition(_:shouldContinueValidatingAfterFindingInvalidTrackIDIn:layerInstruction:asset:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(pl)AVVideoCompositionValidationHandling(im)videoComposition:shouldContinueValidatingAfterFindingInvalidTrackIDInInstruction:layerInstruction:asset:"
  },
  "title" : "videoComposition(_:shouldContinueValidatingAfterFindingInvalidTrackIDIn:layerInstruction:asset:)"
}
-->

# videoComposition(_:shouldContinueValidatingAfterFindingInvalidTrackIDIn:layerInstruction:asset:)

Reports a video composition layer instruction that does not correspond to the track ID used for the composition’s animation or to a track of the asset.

```
optional func videoComposition(_ videoComposition: AVVideoComposition, shouldContinueValidatingAfterFindingInvalidTrackIDIn videoCompositionInstruction: any AVVideoCompositionInstructionProtocol, layerInstruction: AVVideoCompositionLayerInstruction, asset: AVAsset) -> Bool
```

## Parameters

`videoComposition`

The video composition being validated.

`videoCompositionInstruction`

The video composition instruction.

`layerInstruction`

The layer instruction.

`asset`

The underlying asset.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if the video composition should continue validation in order to report additional problems that may exist, otherwise <doc://com.apple.documentation/documentation/Swift/false>.

## Discussion

The asset track is specified in the [`isValid(for:timeRange:validationDelegate:)`](/documentation/AVFoundation/AVVideoComposition/isValid(for:timeRange:validationDelegate:)) method.

---

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)