<!--
{
  "availability" : [
    "Xcode: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 12.3.0 -",
    "maccatalyst: 15.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreMediaIO",
  "identifier" : "/documentation/CoreMediaIO/CMIOExtensionStreamProperties/activeFormatIndex-83u7z",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Core Media I/O",
      "CoreMediaIO"
    ],
    "preciseIdentifier" : "s:So29CMIOExtensionStreamPropertiesC11CoreMediaIOE17activeFormatIndexSiSgvp"
  },
  "title" : "activeFormatIndex"
}
-->

# activeFormatIndex

The index of the active format.

```
@nonobjc var activeFormatIndex: Int? { get set }
```

## Discussion

This value represents the index of the active format in the source’s [`formats`](/documentation/CoreMediaIO/CMIOExtensionStreamSource/formats) array.

The key for this property is [`streamActiveFormatIndex`](/documentation/CoreMediaIO/CMIOExtensionProperty/streamActiveFormatIndex).

---

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)