One Logo Pool Ball
SwiftUICore · IOS API REFERENCE

Ellipse

struct · iOS 13.0+ · SDK 27.1

@frozen struct Ellipse

An ellipse aligned inside the frame of the view containing it.

Members (3)

get · iOS 17.0+

layoutDirectionBehavior

TypeScript
get layoutDirectionBehavior(): LayoutDirectionBehavior
Swift declaration
nonisolated var layoutDirectionBehavior: LayoutDirectionBehavior { get }

Returns the behavior this shape should use for different layout directions. If the layoutDirectionBehavior for a Shape is one that mirrors, the shape's path will be mirrored horizontally when in the specified layout direction. When mirrored, the individual points of the path will be transformed. Defaults to `.mirrors` when deploying on iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0 and later, and to `.fixed` if not. To mirror a path when deploying to earlier releases, either use `View.flipsForRightToLeftLayoutDirection` for a filled or stroked shape or conditionally mirror the points in the path of the shape.

method · iOS 13.0+

path

TypeScript
path(rect: { x: number; y: number; width: number; height: number }): Path
Swift declaration
nonisolated func path(in rect: CGRect) -> Path

Describes this shape as a path within a rectangular frame of reference. - Parameter rect: The frame of reference for describing this shape. - Returns: A path that describes this shape.

init · iOS 13.0+

init

TypeScript
static init(): Ellipse
Swift declaration
init()

Creates a new ellipse shape.

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

Ellipse.inset(by:)

This protocol needs associated types that cannot yet cross the bridge.

All SwiftUICore types →