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

# CGSizeMakeWithDictionaryRepresentation(_:_:)

Fills in a size using the contents of the specified dictionary.

```
func CGSizeMakeWithDictionaryRepresentation(_ dict: CFDictionary, _ size: UnsafeMutablePointer<CGSize>) -> Bool
```

## Parameters

`dict`

A dictionary that was previously returned from the function [`CGSizeCreateDictionaryRepresentation(_:)`](/documentation/CoreGraphics/CGSizeCreateDictionaryRepresentation(_:)).

`size`

On return, the size created from the specified dictionary.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if successful; otherwise <doc://com.apple.documentation/documentation/Swift/false>.

## 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)