---
title: "updateTarget(_:context:)"
framework: charts
role: symbol
role_heading: Instance Method
path: "charts/chartscrolltargetbehavior/updatetarget(_:context:)"
---

# updateTarget(_:context:)

## Declaration

```swift
func updateTarget(_ target: inout ScrollTarget, context: ChartScrollTargetBehaviorContext)
```
