<!--
{
  "availability" : [
    "iOS: 5.0.0 -",
    "iPadOS: 5.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.4.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreImage",
  "identifier" : "/documentation/CoreImage/CIVector/stringRepresentation",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Core Image"
    ],
    "preciseIdentifier" : "c:objc(cs)CIVector(py)stringRepresentation"
  },
  "title" : "stringRepresentation"
}
-->

# stringRepresentation

Returns a formatted string with all the values of a `CIVector`.

```
var stringRepresentation: String { get }
```

## Discussion

Some example string representations of vectors:

|`CIVector`                              |`stringRepresentation`|
|----------------------------------------|----------------------|
|`[CIVector vectorWithX:1.0 Y:0.5 Z:0.3]`|`"[1.0 0.5 0.3]"`     |
|`[CIVector vectorWithX:10.0 Y:23.0]`    |`"[10.0 23.0]"`       |

To create a [`CIVector`](/documentation/CoreImage/CIVector) object from a string representation, use the [`vectorWithString:`](/documentation/CoreImage/CIVector/vectorWithString:) method.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)