---
title: "CGRectMakeWithDictionaryRepresentation(_:_:)"
framework: coregraphics
role: symbol
role_heading: Function
path: "coregraphics/cgrectmakewithdictionaryrepresentation(_:_:)"
---

# CGRectMakeWithDictionaryRepresentation(_:_:)

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

## Declaration

```swift
func CGRectMakeWithDictionaryRepresentation(_ dict: CFDictionary, _ rect: UnsafeMutablePointer<CGRect>) -> Bool
```

## Parameters

- `dict`: A dictionary that was previously returned from the function doc://com.apple.coregraphics/documentation/CoreGraphics/CGRectCreateDictionaryRepresentation(_:).
- `rect`: On return, the rectangle created from the specified dictionary.

## Return Value

Return Value true if successful; otherwise false.

## See Also

### Creating a Geometric Primitive from a Dictionary Representation

- [CGPointMakeWithDictionaryRepresentation(_:_:)](coregraphics/cgpointmakewithdictionaryrepresentation(_:_:).md)
- [CGSizeMakeWithDictionaryRepresentation(_:_:)](coregraphics/cgsizemakewithdictionaryrepresentation(_:_:).md)
