---
title: "CGSizeMake(_:_:)"
framework: coregraphics
role: symbol
role_heading: Function
path: "coregraphics/cgsizemake(_:_:)"
---

# CGSizeMake(_:_:)

Returns a size with the specified dimension values.

## Declaration

```swift
func CGSizeMake(_ width: CGFloat, _ height: CGFloat) -> CGSize
```

## Parameters

- `width`: A width value.
- `height`: A height value.

## Return Value

Return Value Returns a CGSize structure with the specified width and height.

## See Also

### Creating a Geometric Primitive from Values

- [CGPointMake(_:_:)](coregraphics/cgpointmake(_:_:).md)
- [CGRectMake(_:_:_:_:)](coregraphics/cgrectmake(_:_:_:_:).md)
- [CGVectorMake(_:_:)](coregraphics/cgvectormake(_:_:).md)
