---
title: currentSource
framework: AVFoundation
role: symbol
role_heading: Instance Property
platforms: [iOS 26.0+, iPadOS 26.0+, Mac Catalyst 26.0+, macOS 26.0+, tvOS 26.0+]
path: avfoundation/avcapturetimecodegenerator/currentsource
---

# currentSource

The active timecode source used by AVCaptureTimecodeGenerator to maintain clock synchronization for accurate timecode generation.

## Declaration

```swift
var currentSource: AVCaptureTimecode.Source { get }
```

## Discussion

Discussion Indicates the active timecode source, as defined in the AVCaptureTimecodeSynchronizationSourceType enum. If an AVCaptureTimecodeGenerator becomes disconnected from its source, it continues generating timecodes using historical data from its ring buffer. This approach allows the generator to maintain synchronization during brief disruptions, as is common in cinema workflows where timecode signals may experience discontinuities.

## See Also

### Managing sources

- [availableSources](avfoundation/avcapturetimecodegenerator/availablesources.md)
- [frameCountSource](avfoundation/avcapturetimecodegenerator/framecountsource.md)
- [realTimeClockSource](avfoundation/avcapturetimecodegenerator/realtimeclocksource.md)
- [startSynchronization(source:)](avfoundation/avcapturetimecodegenerator/startsynchronization(source:).md)
