---
title: "union(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsuserinterfacecompressionoptions/union(_:)"
---

# union(_:)

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

## Declaration

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

## Parameters

- `options`: A set of compression options to add to the current object.

## Return Value

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

## See Also

### Combining compression options

- [subtracting(_:)](appkit/nsuserinterfacecompressionoptions/subtracting(_:).md)
