---
title: "init(switchingResolutions:boundingBox:)"
framework: realitykit
role: symbol
role_heading: Initializer
path: "realitykit/levelofdetailcomponent/selectionstrategy/resolutionmetric/init(switchingresolutions:boundingbox:)"
---

# init(switchingResolutions:boundingBox:)

Creates a resolution metric for a level of detail component to switch with.

## Declaration

```swift
init(switchingResolutions: [LevelOfDetailComponent.SelectionStrategy.ResolutionMetric.DirectionalSwitchingResolutions], boundingBox: BoundingBox)
```

## Parameters

- `switchingResolutions`: An array of DirectionalSwitchingResolutions. The DirectionalSwitchingResolutions at index i corresponds to the LOD level i + 1.
- `boundingBox`: The bounding box of the entity used when calculating the switching resolutions.
