---
title: "CGImageSourceUpdateData(_:_:_:)"
framework: imageio
role: symbol
role_heading: Function
path: "imageio/cgimagesourceupdatedata(_:_:_:)"
---

# CGImageSourceUpdateData(_:_:_:)

Updates the data in an incremental image source.

## Declaration

```swift
func CGImageSourceUpdateData(_ isrc: CGImageSource, _ data: CFData, _ final: Bool)
```

## Parameters

- `isrc`: The image source to modify.
- `data`: The updated data for the image source. Each time you call this function, specify all of the accumulated image data so far.
- `final`: A Boolean value that indicates whether the data parameter represents the complete data set. Specify true if the data is complete or false if it isn’t.

## Discussion

Discussion This method updates the state of the image source and its contained images. Call this method one or more times to update the contents of an incremental data source. Each time you call the method, you must specify all of the accumulated image data, not just the new data you received.

## See Also

### Updating an Incremental Image

- [CGImageSourceUpdateDataProvider(_:_:_:)](imageio/cgimagesourceupdatedataprovider(_:_:_:).md)
