<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIRegion/byUnion(with:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIRegion(im)regionByUnionWithRegion:"
  },
  "title" : "byUnion(with:)"
}
-->

# byUnion(with:)

Returns a new region containing the combined areas of the specified region and the current region.

```
func byUnion(with region: UIRegion) -> Self
```

## Parameters

`region`

The region to be combined with the current region.

## Return Value

A new region that contains the points from both the current region and the shape specified by the `region` parameter.

## Discussion

Combining any region with the infinite region returns the infinite region.

---

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)