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.
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.