---
title: "concatenate(_:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/graphicscontext/concatenate(_:)"
---

# concatenate(_:)

Appends the given transform to the context’s existing transform.

## Declaration

```swift
mutating func concatenate(_ matrix: CGAffineTransform)
```

## Parameters

- `matrix`: A transform to append to the existing transform.

## Discussion

Discussion Calling this method is equivalent to updating the context’s transform directly using the matrix parameter: transform = matrix.concatenating(transform)

## See Also

### Applying transforms

- [scaleBy(x:y:)](swiftui/graphicscontext/scaleby(x:y:).md)
- [rotate(by:)](swiftui/graphicscontext/rotate(by:).md)
- [translateBy(x:y:)](swiftui/graphicscontext/translateby(x:y:).md)
- [transform](swiftui/graphicscontext/transform.md)
