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

# contains(_:)

Returns a Boolean value that indicates whether the current variant contains the specified variant.

## Declaration

```swift
func contains(_ other: SymbolVariants) -> Bool
```

## Parameters

- `other`: A variant to look for in this variant.

## Return Value

Return Value true if this variant contains other; otherwise, false.
