---
title: "subscript(explicit:)"
framework: swiftui
role: symbol
role_heading: Instance Subscript
path: "swiftui/viewdimensions3d/subscript(explicit:)"
---

# subscript(explicit:)

Gets the explicit value of the given depth alignment guide

## Declaration

```swift
subscript(explicit guide: DepthAlignment) -> CGFloat? { get }
```

## Overview

Overview Find the depth offset of a particular guide in the corresponding view by using that guide as an index to read from the context: .alignmentGuide(.front) { context in     context[.front] - 10 } This subscript returns nil if no value exists for the guide. For information about using subscripts in Swift to access member elements of a collection, list, or, sequence, see Subscripts in The Swift Programming Language.
