<!--
{
  "availability" : [
    "macOS: 10.13.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSUserInterfaceCompressionOptions/union(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSUserInterfaceCompressionOptions(im)optionsByAddingOptions:"
  },
  "title" : "union(_:)"
}
-->

# union(_:)

Creates a new compression options object representing the union with the provided options.

```
func union(_ options: NSUserInterfaceCompressionOptions) -> NSUserInterfaceCompressionOptions
```

## Parameters

`options`

A set of compression options to add to the current object.

## Return Value

A new `NSCompressibleUserInterfaceOptions` object which represents the union with the supplied compression options.

---

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)