---
title: "advanced(_:by:)"
framework: AVFoundation
role: symbol
role_heading: Type Method
platforms: [iOS 26.0+, iPadOS 26.0+, Mac Catalyst 26.0+, macOS 26.0+, tvOS 26.0+]
path: "avfoundation/avcapturetimecode/advanced(_:by:)"
---

# advanced(_:by:)

Generates a new timecode by adding a specified number of frames to the given timecode, handling overflow for seconds, minutes, and hours.

## Declaration

```swift
static func advanced(_ timecode: AVCaptureTimecode, by framesToAdd: Int64) -> AVCaptureTimecode
```

## Parameters

- `timecode`: The original doc://com.apple.avfoundation/documentation/AVFoundation/AVCaptureTimecode to be incremented.
- `framesToAdd`: The number of frames to add to the timecode.

## Return Value

Return Value A new AVCaptureTimecode struct with the updated time values after adding the specified frames.

## See Also

### Timecode generation

- [AVCaptureTimecodeGenerator](avfoundation/avcapturetimecodegenerator.md)
- [AVCaptureTimecodeGeneratorDelegate](avfoundation/avcapturetimecodegeneratordelegate.md)
- [AVCaptureTimecodeGenerator.SynchronizationStatus](avfoundation/avcapturetimecodegenerator/synchronizationstatus.md)
- [AVCaptureTimecode.Source](avfoundation/avcapturetimecode/source.md)
- [AVCaptureTimecode.SourceType](avfoundation/avcapturetimecode/sourcetype-swift.enum.md)
- [AVCaptureTimecode](avfoundation/avcapturetimecode.md)
- [createMetadataSampleBuffer(from:associatedWithPresentationTimeStamp:)](avfoundation/avcapturetimecode/createmetadatasamplebuffer(from:associatedwithpresentationtimestamp:).md)
- [createMetadataSampleBuffer(from:forDuration:)](avfoundation/avcapturetimecode/createmetadatasamplebuffer(from:forduration:).md)
