<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreGraphics",
  "identifier" : "/documentation/CoreGraphics/CGSizeMake(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Graphics"
    ],
    "preciseIdentifier" : "c:@F@CGSizeMake"
  },
  "title" : "CGSizeMake(_:_:)"
}
-->

# CGSizeMake(_:_:)

Returns a size with the specified dimension values.

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

## Parameters

`width`

A width value.

`height`

A height value.

## Return Value

Returns a <doc://com.apple.documentation/documentation/CoreFoundation/CGSize> structure with the specified width and height.

## Discussion

---

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)