<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.5.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "QuartzCore",
  "identifier" : "/documentation/QuartzCore/CATransform3DMakeScale(_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Animation"
    ],
    "preciseIdentifier" : "c:@F@CATransform3DMakeScale"
  },
  "title" : "CATransform3DMakeScale(_:_:_:)"
}
-->

# CATransform3DMakeScale(_:_:_:)

Returns a transform that scales by `(sx, sy, sz)`.

```
func CATransform3DMakeScale(_ sx: CGFloat, _ sy: CGFloat, _ sz: CGFloat) -> CATransform3D
```

## Discussion

`t = [sx 0 0 0; 0 sy 0 0; 0 0 sz 0; 0 0 0 1].`

---

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)