---
title: "==(_:_:)"
framework: foundation
role: symbol
role_heading: Operator
path: "foundation/attributedstringprotocol/==(_:_:)"
---

# ==(_:_:)

## Declaration

```swift
static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol
```
