<!--
{
  "availability" : [
    "macOS: 10.10.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/AffineTransform/transform(_:)-6fze6",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:10Foundation15AffineTransformV9transformySo6CGSizeVAFF"
  },
  "title" : "transform(_:)"
}
-->

# transform(_:)

Applies the affine transform to the specified size.

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

## Parameters

`size`

The size to transform.

## Return Value

A size that represents dimensions in a transformed coordinate space.

## Discussion

---

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)