---
title: "==(_:_:)"
framework: realitykit
role: symbol
role_heading: Operator
path: "realitykit/opacitycomponent/==(_:_:)"
---

# ==(_:_:)

Returns a Boolean value that indicates whether two opacity components are equal.

## Declaration

```swift
static func == (lhs: OpacityComponent, rhs: OpacityComponent) -> Bool
```

## Parameters

- `lhs`: An opacity component.
- `rhs`: Another opacity component.

## Discussion

Discussion If the member values of each component match, the components are equal.
