---
title: "UIRectFillUsingBlendMode(_:_:)"
framework: uikit
role: symbol
role_heading: Function
path: "uikit/uirectfillusingblendmode(_:_:)"
---

# UIRectFillUsingBlendMode(_:_:)

Fills a rectangle with the current fill color using the specified blend mode.

## Declaration

```swift
func UIRectFillUsingBlendMode(_ rect: CGRect, _ blendMode: CGBlendMode)
```

## Parameters

- `rect`: The rectangle defining the area in which to draw.
- `blendMode`: The blend mode to use during drawing.

## Discussion

Discussion This function draws the rectangle in the current graphics context. If the current graphics context is nil, this function does nothing. This function may be called from any thread of your app.

## See Also

### Paths

- [UIBezierPath](uikit/uibezierpath.md)
- [UIRectFill(_:)](uikit/uirectfill(_:).md)
- [UIRectFrame(_:)](uikit/uirectframe(_:).md)
- [UIRectFrameUsingBlendMode(_:_:)](uikit/uirectframeusingblendmode(_:_:).md)
