<!--
{
  "availability" : [
    "iOS: 7.0.0 - 12.0.0",
    "iPadOS: 7.0.0 - 12.0.0",
    "macCatalyst: -",
    "swift: 1.0.0 - 4.2.0",
    "tvOS: -",
    "visionOS: -",
    "watchOS: 2.0.0 - 5.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIOffsetEqualToOffset(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "s:5UIKit21UIOffsetEqualToOffsetySbSo0B0V_ADtF"
  },
  "title" : "UIOffsetEqualToOffset(_:_:)"
}
-->

# UIOffsetEqualToOffset(_:_:)

Returns a Boolean value that indicates whether two offsets are equal.

```
func UIOffsetEqualToOffset(_ offset1: UIOffset, _ offset2: UIOffset) -> 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)