<!--
{
  "availability" : [
    "iOS: 13.4.0 -",
    "iPadOS: 13.4.0 -",
    "macCatalyst: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIPointerRegion/init(rect:identifier:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "s:So15UIPointerRegionC5UIKitE4rect10identifierABSo6CGRectV_s11AnyHashableVSgtcfc"
  },
  "title" : "init(rect:identifier:)"
}
-->

# init(rect:identifier:)

Creates a pointer region with the specified rectangle and optional identifier.

```
@MainActor @preconcurrency convenience init(rect: CGRect, identifier: AnyHashable? = nil)
```

---

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)