---
title: "resolve(_:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/graphicscontext/resolve(_:)-4dx65"
---

# resolve(_:)

Gets a version of a text view that’s fixed with the current values of the graphics context’s environment.

## Declaration

```swift
func resolve(_ text: Text) -> GraphicsContext.ResolvedText
```

## Parameters

- `text`: The doc://com.apple.SwiftUI/documentation/SwiftUI/Text view to resolve.

## Return Value

Return Value A text view that’s resolved into the current context’s environment, taking into account environment values like the display resolution and current color scheme.

## Discussion

Discussion You can measure the resolved text by calling its measure(in:) method. You can draw the resolved text with the context’s draw(_:in:) or draw(_:at:anchor:) method.
