---
title: deviceDirections
framework: AVKit
role: symbol
role_heading: Instance Property
platforms: [iOS 27.1+, iPadOS 27.1+]
path: avkit/avcapturedevicedirectioncoordinator/devicedirections
---

# deviceDirections

The current direction of each camera the coordinator monitors, in relation to its view.

## Declaration

```swift
var deviceDirections: AVCaptureDeviceDirectionMap { get }
```

## Mentioned in

Choosing a camera by the direction it faces

## Discussion

Discussion The map groups the device types you passed at initialization by the direction they face. One array holds the devices that face the same direction as the view, and the other holds the devices that face away from it. Reading this property gives you the state at that moment. The change handler reports later changes. note: This property is an empty AVCaptureDeviceDirectionMap until the coordinator calls its change handler for the first time. Treat that first callback, rather than initialization, as the point at which you know the directions.
