One Logo Pool Ball
Charts · IOS API REFERENCE

AnyChartSymbolShape

struct · iOS 16.0+ · SDK 27.1

@frozen struct AnyChartSymbolShape

A type-erased plotting shape.

Members (3)

get · iOS 16.0+

perceptualUnitRect

TypeScript
get perceptualUnitRect(): { x: number; y: number; width: number; height: number }
Swift declaration
var perceptualUnitRect: CGRect { get }

Returns a rectangle that bounds the shape in such a way that viewers perceive it as having the same size and position as a unit rectangle.

method · iOS 16.0+

path

TypeScript
path(rect: { x: number; y: number; width: number; height: number }): _SwiftUICore_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 16.0+

init

TypeScript
static init(content: SDKHandle): AnyChartSymbolShape
Swift declaration
nonisolated init(_ content: any ChartSymbolShape)

Skipped declarations

No declarations were skipped in this snapshot.

All Charts types →