---
title: "init(identifier:type:rect:faceYawAngle:)"
framework: dockkit
role: symbol
role_heading: Initializer
path: "dockkit/dockaccessory/observation/init(identifier:type:rect:faceyawangle:)"
---

# init(identifier:type:rect:faceYawAngle:)

Creates a new observation.

## Declaration

```swift
init(identifier: Int, type: DockAccessory.Observation.ObservationType, rect: CGRect, faceYawAngle: Measurement<UnitAngle>? = nil)
```

## Parameters

- `identifier`: A unique identifier representing the subject in the frame.
- `type`: The type of subject in the frame.
- `rect`: The coordinates of the subject in the frame.
- `faceYawAngle`: The angle of the subject’s face in radians.
