> For the complete documentation index, see [llms.txt](https://sagar-r-kothari.gitbook.io/blog/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sagar-r-kothari.gitbook.io/blog/_posts/2020-02-09-swift-equatable.md).

# 2020-02-09-Swift-Equatable

```swift
struct MyDataStructure: Equatable {
  let name: String
  let employeeId: String

  static func == (lhs: MyDataStructure, rhs: MyDataStructure) -> Bool {
    return lhs.employeeId == rhs.employeeId
  }
}
```
