---
title: "CATransform3DMakeScale(_:_:_:)"
framework: Core Animation
role: symbol
role_heading: Function
platforms: [iOS 2.0+, iPadOS 2.0+, Mac Catalyst 13.1+, macOS 10.5+, tvOS 9.0+, visionOS 1.0+]
path: "quartzcore/catransform3dmakescale(_:_:_:)"
---

# CATransform3DMakeScale(_:_:_:)

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

## Declaration

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

## Discussion

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

## See Also

### Creating Transforms

- [CATransform3DMakeTranslation(_:_:_:)](quartzcore/catransform3dmaketranslation(_:_:_:).md)
- [CATransform3DMakeRotation(_:_:_:_:)](quartzcore/catransform3dmakerotation(_:_:_:_:).md)
