One Logo Pool Ball
SpriteKit · IOS API REFERENCE

SKRegion

class · iOS 8.0+ · SDK 27.1

class SKRegion

Members (10)

static · iOS 8.0+

infinite

TypeScript
static infinite(): SKRegion
Swift declaration
class func infinite() -> Self
method · iOS 8.0+

contains

TypeScript
contains(point: { x: number; y: number }): boolean
Swift declaration
func contains(_ point: CGPoint) -> Bool
init · iOS 8.0+

init

TypeScript
static initPath(path: _CoreGraphics_CGPath): SKRegion
Swift declaration
init(path: CGPath)
init · iOS 8.0+

init

TypeScript
static initRadius(radius: number): SKRegion
Swift declaration
init(radius: Float)
init · iOS 8.0+

init

TypeScript
static initSize(size: { width: number; height: number }): SKRegion
Swift declaration
init(size: CGSize)
method · iOS 8.0+

inverse

TypeScript
inverse(): SKRegion
Swift declaration
func inverse() -> Self
method · iOS 8.0+

byDifference

TypeScript
byDifference(region: SKRegion): SKRegion
Swift declaration
func byDifference(from region: SKRegion) -> Self
method · iOS 8.0+

byIntersection

TypeScript
byIntersection(region: SKRegion): SKRegion
Swift declaration
func byIntersection(with region: SKRegion) -> Self
method · iOS 8.0+

byUnion

TypeScript
byUnion(region: SKRegion): SKRegion
Swift declaration
func byUnion(with region: SKRegion) -> Self
get · iOS 8.0+

path

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

Skipped declarations

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

SKRegion.init()

inherited init: cannot prove legal (class declares 3 custom initializers)

All SpriteKit types →