<!--
{
  "availability" : [
    "iOS: 13.4.0 -",
    "iPadOS: 13.4.0 -",
    "macCatalyst: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIPointerShape-swift.enum/roundedRect(_:radius:)",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "s:5UIKit14UIPointerShapeO11roundedRectyACSo6CGRectV_14CoreFoundation7CGFloatVtcACmF"
  },
  "title" : "UIPointerShape.roundedRect(_:radius:)"
}
-->

# UIPointerShape.roundedRect(_:radius:)

The pointer morphs into a rounded rectangle using the provided corner radius.

```
case roundedRect(CGRect, radius: CGFloat = UIPointerShape.defaultCornerRadius)
```

## Discussion

If you don’t specify a radius, the rounded rectangle uses the `defaultCornerRadius`.

> Note:
> If used alongside a content effect, this rectangle must be in the view coordinate space of the ``doc://com.apple.uikit/documentation/UIKit/UIPointerEffect-swift.enum/preview``. Otherwise, it’s centered around the pointer’s current location, and the rectangle’s origin is interpreted as an offset.

---

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)