CGImageMetadataCreateMutableCopy(_:)
Creates a deep, mutable copy of the specified metadata information.
Declaration
func CGImageMetadataCreateMutableCopy(_ metadata: CGImageMetadata) -> CGMutableImageMetadata?Parameters
- metadata:
The metadata information to copy. This function makes a deep copy of all Cgimagemetadatatag structures in this parameter, including the values for the tags.
Return Value
A new CGMutableImageMetadata type that contains a deep copy of the tags in the metadata parameter.
Discussion
Typically, you call this function before modifying the metadata information for an image. Use it to create a copy of the image’s existing metadata information, and then add or modify that metadata before saving it with the image.