---
title: "UIRectFill(_:)"
framework: uikit
role: symbol
role_heading: Function
path: "uikit/uirectfill(_:)"
---

# UIRectFill(_:)

Fills the specified rectangle with the current color.

## Declaration

```swift
func UIRectFill(_ rect: CGRect)
```

## Parameters

- `rect`: The rectangle defining the area in which to draw.

## Discussion

Discussion Fills the specified rectangle using the fill color of the current graphics context and the kCGBlendModeCopy blend mode. This function may be called from any thread of your app.

## See Also

### Paths

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