<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macOS: 26.0.0 -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/WorldTrackingLimitation",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI23WorldTrackingLimitationV"
  },
  "title" : "WorldTrackingLimitation"
}
-->

# WorldTrackingLimitation

A structure to represent limitations of tracking the user’s surroundings.

```
struct WorldTrackingLimitation
```

## Overview

You receive a set of world tracking limitations when you read the
[`worldTrackingLimitations`](/documentation/SwiftUI/EnvironmentValues/worldTrackingLimitations) environment value. The value
tells you which limitations the device currently is facing. If any of
the limitations occur due to changing circumstances, e.g., the lighting,
the set is updated accordingly. For example, the following [`Text`](/documentation/SwiftUI/Text) view
automatically updates when the world tracking limitations change:

```
@Environment(\.worldTrackingLimitations)
private var worldTrackingLimitations

var body: some View {
    Text("Can track translation?" + worldTrackingLimitations
        .contains(.translation) ? "No" : "Yes")
}
```

## Topics

### Type Properties

[`static let orientation: WorldTrackingLimitation`](/documentation/SwiftUI/WorldTrackingLimitation/orientation)

The device capabilities of tracking orientation changes in all
dimensions are currently limited.

[`static let translation: WorldTrackingLimitation`](/documentation/SwiftUI/WorldTrackingLimitation/translation)

The device capabilities of tracking translation changes in all
dimensions are currently limited.

## Relationships

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

[`Equatable`](/documentation/Swift/Equatable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)