# `GSDrawSlice.transform`

*Instance Property*

The transform to be applied to the slice as it is rendered.

## Declaration

```swift
var transform: AffineTransform? { get set }
```

```objc
@property (strong) NSAffineTransform * transform;
```

```python
transform() -> NSAffineTransform
setTransform_(transform: NSAffineTransform)
```

## Discussion

This transform is defined in terms of the coordinate system as transformed by any containing groups. That is, the effective transform of the slice is the concatenation of all the transforms of any groups that contain the slice and the transform of the slice itself.

A `nil` transform represents the identity transform.

