---
title: "beginTransparencyLayer(in:auxiliaryInfo:)"
framework: coregraphics
role: symbol
role_heading: Instance Method
path: "coregraphics/cgcontext/begintransparencylayer(in:auxiliaryinfo:)"
---

# beginTransparencyLayer(in:auxiliaryInfo:)

Begins a transparency layer whose contents are bounded by the specified rectangle.

## Declaration

```swift
func beginTransparencyLayer(in rect: CGRect, auxiliaryInfo auxInfo: CFDictionary?)
```

## Parameters

- `rect`: The rectangle, specified in user space, that bounds the transparency layer.
- `auxInfo`: A dictionary that specifies any additional information, or nil.

## Discussion

Discussion This function is identical to beginTransparencyLayer(auxiliaryInfo:) except that the content of the transparency layer is within the bounds of the provided rectangle.

## See Also

### Working with Transparency Layers

- [beginTransparencyLayer(auxiliaryInfo:)](coregraphics/cgcontext/begintransparencylayer(auxiliaryinfo:).md)
- [endTransparencyLayer()](coregraphics/cgcontext/endtransparencylayer().md)
