<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIRectFillUsingBlendMode(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@F@UIRectFillUsingBlendMode"
  },
  "title" : "UIRectFillUsingBlendMode(_:_:)"
}
-->

# UIRectFillUsingBlendMode(_:_:)

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

```
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

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.

---

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)