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

# contains(_:)

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

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

## Parameters

`options`

A compression options object to compare with the current instance.

## Return Value

Returns <doc://com.apple.documentation/documentation/Swift/true> if all the supplied options are present in the instance’s options, or <doc://com.apple.documentation/documentation/Swift/false> otherwise.

---

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)