---
title: RoomAnchor
framework: arkit
role: symbol
role_heading: Structure
path: arkit/roomanchor
---

# RoomAnchor

The representation of a room ARKit is currently tracking.

## Declaration

```swift
struct RoomAnchor
```

## Overview

Overview A RoomAnchor structure describes an approximate representation of the room’s geometry, and contains arrays with identifiers of mesh and plane anchors that the framework associates with that room.

## Topics

### Getting information about a room anchor

- [geometry](arkit/roomanchor/geometry.md)
- [id](arkit/roomanchor/id.md)
- [isCurrentRoom](arkit/roomanchor/iscurrentroom.md)
- [meshAnchorIDs](arkit/roomanchor/meshanchorids.md)
- [originFromAnchorTransform](arkit/roomanchor/originfromanchortransform.md)
- [planeAnchorIDs](arkit/roomanchor/planeanchorids.md)

### Inspecting a room anchor

- [contains(_:)](arkit/roomanchor/contains(_:).md)
- [geometries(of:)](arkit/roomanchor/geometries(of:).md)
- [description](arkit/roomanchor/description.md)

### Operators

- [==(_:_:)](arkit/roomanchor/==(_:_:).md)

### Instance Methods

- [geometries(classifiedAs:)](arkit/roomanchor/geometries(classifiedas:).md)

### Default Implementations

- [ARKitCoordinateSpaceProviding Implementations](arkit/roomanchor/arkitcoordinatespaceproviding-implementations.md)

## Relationships

### Conforms To

- [ARKitCoordinateSpaceProviding](arkit/arkitcoordinatespaceproviding.md)
- [Anchor](arkit/anchor.md)
- [Copyable](swift/copyable.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [Identifiable](swift/identifiable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Room tracking

- [RoomTrackingProvider](arkit/roomtrackingprovider.md)
- [SurfaceClassification](arkit/surfaceclassification.md)
- [Building local experiences with room tracking](visionos/building-local-experiences-with-room-tracking.md)
