---
title: "resolveSymbol(id:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/graphicscontext/resolvesymbol(id:)"
---

# resolveSymbol(id:)

Gets the identified child view as a resolved symbol, if the view exists.

## Declaration

```swift
func resolveSymbol<ID>(id: ID) -> GraphicsContext.ResolvedSymbol? where ID : Hashable
```

## Parameters

- `id`: The value that you used to tag the view when you define it in the symbols parameter of the doc://com.apple.SwiftUI/documentation/SwiftUI/Canvas initializer doc://com.apple.SwiftUI/documentation/SwiftUI/Canvas/init(opaque:colorMode:rendersAsynchronously:renderer:symbols:).

## Return Value

Return Value The resolved symbol, or nil if SwiftUI can’t find a child view with the given id.

## See Also

### Resolving a drawn entity

- [resolve(_:)](swiftui/graphicscontext/resolve(_:).md)
- [GraphicsContext.ResolvedSymbol](swiftui/graphicscontext/resolvedsymbol.md)
- [GraphicsContext.ResolvedImage](swiftui/graphicscontext/resolvedimage.md)
- [GraphicsContext.ResolvedText](swiftui/graphicscontext/resolvedtext.md)
