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

# contains(_:)

Determines whether the supplied compression options are all present in the current instance.

## Declaration

```swift
func contains(_ options: NSUserInterfaceCompressionOptions) -> Bool
```

## Parameters

- `options`: A compression options object to compare with the current instance.

## Return Value

Return Value Returns true if all the supplied options are present in the instance’s options, or false otherwise.

## See Also

### Comparing compression options

- [isEmpty](appkit/nsuserinterfacecompressionoptions/isempty.md)
- [intersects(_:)](appkit/nsuserinterfacecompressionoptions/intersects(_:).md)
