---
title: "==(_:_:)"
framework: swift
role: symbol
role_heading: Operator
path: "swift/substring/==(_:_:)"
---

# ==(_:_:)

## Declaration

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