---
title: pixelFormatTypes
framework: corevideo
role: symbol
role_heading: Instance Property
path: corevideo/cvpixelbufferattributes/pixelformattypes
---

# pixelFormatTypes

Allow multiple pixel formats to be specified in attributes

## Declaration

```swift
var pixelFormatTypes: [CVPixelFormatType]? { get set }
```

## Discussion

Discussion Setting this property will override the single format value set by pixelFormatType and vice-versa. When accessing pixelFormatType, only the first value is used if multiple format values are set. Do not set this value to an empty array.
