---
title: "==(_:_:)"
framework: SwiftData
role: symbol
role_heading: Operator
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+, watchOS 27.0+]
path: "swiftdata/resultssection/==(_:_:)"
---

# ==(_:_:)

Two sections are equal if they have the same title and contain the same elements, in the same order.

## Declaration

```swift
static func == (lhs: ResultsSection<Element, SectionTitle>, rhs: ResultsSection<Element, SectionTitle>) -> Bool
```
