<!--
{
  "availability" : [
    "macOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSAffineTransform/transform(_:)-6z1xo",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSAffineTransform(im)transformBezierPath:"
  },
  "title" : "transform(_:)"
}
-->

# transform(_:)

Creates and returns a new Bézier path object with each point in the given path transformed by the receiver.

```
func transform(_ path: NSBezierPath) -> NSBezierPath
```

## Parameters

`path`

An object representing the bezier path to be used in the transformation.

## Discussion

The original `NSBezierPath` object is not modified.

---

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)