---
title: "lookingAt(_:)"
framework: groupactivities
role: symbol
role_heading: Type Method
path: "groupactivities/spatialtemplateelementdirection/lookingat(_:)-1d7ak"
---

# lookingAt(_:)

Creates a direction that orients the participant to face the specified point in the shared coordinate space.

## Declaration

```swift
static func lookingAt(_ position: SpatialTemplateElementPosition) -> SpatialTemplateElementDirection
```

## Parameters

- `position`: A location in the shared coordinate space. Specify positions as an offset from the app’s content using the doc://com.apple.GroupActivities/documentation/GroupActivities/SpatialTemplateElementPosition type.

## Return Value

Return Value A direction type that faces the specified position in the coordinate space.

## See Also

### Looking at a specific location

- [lookingAt(_:)](groupactivities/spatialtemplateelementdirection/lookingat(_:)-70j0i.md)
