One Logo Pool Ball
PaperKit · IOS API REFERENCE

ShapeMarkup.Shape.Star

struct · iOS 27.0+ · SDK 27.1

struct Star

Members (6)

get · iOS 27.0+

innerRadius

TypeScript
get innerRadius(): number
Swift declaration
var innerRadius: CGFloat

The radius of inner points relative to outer points, in unit coordinate space (0.0 to 1.0). A value of `0.5` creates inner points halfway to the center.

set · iOS 27.0+

innerRadius

TypeScript
set innerRadius(value: number)
Swift declaration
var innerRadius: CGFloat

The radius of inner points relative to outer points, in unit coordinate space (0.0 to 1.0). A value of `0.5` creates inner points halfway to the center.

get · iOS 27.0+

path

TypeScript
get path(): _CoreGraphics_CGPath
Swift declaration
var path: CGPath { get }

The path of the shape.

init · iOS 27.0+

init

TypeScript
static init(points: number, innerRadius: number): ShapeMarkup_Shape_Star
Swift declaration
init(points: Int, innerRadius: CGFloat)

Create a new star shape with alternating inner and outer points. - Parameters: - points: The number of points on the star. - innerRadius: The radius of inner points relative to outer points, in unit coordinate space (0.0 to 1.0). A value of `0.5` creates inner points halfway to the center.

get · iOS 27.0+

points

TypeScript
get points(): number
Swift declaration
var points: Int

The number of points on the star.

set · iOS 27.0+

points

TypeScript
set points(value: number)
Swift declaration
var points: Int

The number of points on the star.

Skipped declarations

No declarations were skipped in this snapshot.

All PaperKit types →