One Logo Pool Ball
Charts · IOS API REFERENCE

BasicChartSymbolShape

struct · iOS 16.0+ · SDK 27.1

struct BasicChartSymbolShape

A basic chart symbol shape.

Members (3)

method · iOS 16.0+

strokeBorder

TypeScript
strokeBorder(lineWidth?: number): SDKHandle
Swift declaration
func strokeBorder(lineWidth: CGFloat = 1) -> some ChartSymbolShape

Creates a stroked symbol shape by inner-stroking the basic symbol shape. - Parameter lineWidth: The stroke line width. - Returns: A symbol shape that strokes the shape of `self`.

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.

Skipped declarations

No declarations were skipped in this snapshot.

All Charts types →