<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSBezierPath/init(ovalIn:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSBezierPath(cm)bezierPathWithOvalInRect:"
  },
  "title" : "init(ovalIn:)"
}
-->

# init(ovalIn:)

Creates and returns a new Bézier path object initialized with an oval path inscribed in the specified rectangle.

```
init(ovalIn rect: NSRect)
```

## Parameters

`rect`

The rectangle in which to inscribe an oval.

## Return Value

An `NSBezierPath` new path object with the oval path.

## Discussion

If the `aRect` parameter specifies a square, the inscribed path is a circle. The path is constructed by starting in the lower-right quadrant of the rectangle and adding arc segments counterclockwise to complete the oval.

## See Also

[`bezierPath`](/documentation/AppKit/NSBezierPath/bezierPath)

Creates and returns a new Bézier path object.

[`appendOval(in:)`](/documentation/AppKit/NSBezierPath/appendOval(in:))

Appends an oval path to the path, inscribing the oval in the specified rectangle.



---

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)