<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftData",
  "identifier" : "/documentation/SwiftData/ResultsSection/==(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Operator",
  "symbol" : {
    "kind" : "Operator",
    "modules" : [
      "SwiftData"
    ],
    "preciseIdentifier" : "s:9SwiftData14ResultsSectionV2eeoiySbACyxq_G_AEtFZ"
  },
  "title" : "==(_:_:)"
}
-->

# ==(_:_:)

Two sections are equal if they have the same [`title`](/documentation/SwiftData/ResultsSection/title) and contain the same
elements, in the same order.

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)