---
title: "CGSizeApplyAffineTransform(_:_:)"
framework: coregraphics
role: symbol
role_heading: Function
path: "coregraphics/cgsizeapplyaffinetransform(_:_:)"
---

# CGSizeApplyAffineTransform(_:_:)

Returns the height and width resulting from a transformation of an existing height and width.

## Declaration

```swift
func CGSizeApplyAffineTransform(_ size: CGSize, _ t: CGAffineTransform) -> CGSize
```

## Parameters

- `size`: A size that specifies the height and width to transform.
- `t`: The affine transform to apply.

## Return Value

Return Value A new size resulting from applying the specified affine transform to the existing size.

## See Also

### Applying Affine Transformations

- [CGPointApplyAffineTransform(_:_:)](coregraphics/cgpointapplyaffinetransform(_:_:).md)
- [CGRectApplyAffineTransform(_:_:)](coregraphics/cgrectapplyaffinetransform(_:_:).md)
