---
title: "CGImageSourceUpdateDataProvider(_:_:_:)"
framework: imageio
role: symbol
role_heading: Function
path: "imageio/cgimagesourceupdatedataprovider(_:_:_:)"
---

# CGImageSourceUpdateDataProvider(_:_:_:)

Updates an incremental image source with a new data provider.

## Declaration

```swift
func CGImageSourceUpdateDataProvider(_ isrc: CGImageSource, _ provider: CGDataProvider, _ final: Bool)
```

## Parameters

- `isrc`: The image source to modify.
- `provider`: The new data provider. The new data provider must provide all the previous data supplied to the image source and any additional new data.
- `final`: A Boolean value that indicates whether the provider parameter provides the complete data set. Specify true if the data is complete or false if it isn’t.

## See Also

### Updating an Incremental Image

- [CGImageSourceUpdateData(_:_:_:)](imageio/cgimagesourceupdatedata(_:_:_:).md)
