---
title: "transform(_:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/affinetransform/transform(_:)-6fze6"
---

# transform(_:)

Applies the affine transform to the specified size.

## Declaration

```swift
func transform(_ size: NSSize) -> NSSize
```

## Parameters

- `size`: The size to transform.

## Return Value

Return Value A size that represents dimensions in a transformed coordinate space.

## See Also

### Transforming Data and Objects

- [transform(_:)](foundation/affinetransform/transform(_:)-1ozpp.md)
