<!--
{
  "availability" : [
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSAffineTransform/init(transform:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSAffineTransform(im)initWithTransform:"
  },
  "title" : "init(transform:)"
}
-->

# init(transform:)

Initializes the receiver’s matrix using another transform object.

```
convenience init(transform: NSAffineTransform)
```

## Parameters

`transform`

The transform object whose matrix values should be copied to this object.

## Return Value

A new transform object initialized with the matrix values of `aTransform`.

## See Also

[`+  transform`](/documentation/Foundation/NSAffineTransform/transform)

Creates a new affine transform initialized to the identity matrix.



---

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)