init
TypeScriptstatic initImageNamedNormalMapped(name: string, generateNormalMap: boolean): Promise<SKSpriteNode>Swift declarationconvenience init(imageNamed name: String, normalMapped generateNormalMap: Bool)class · SDK 27.1
class SKSpriteNodestatic initImageNamedNormalMapped(name: string, generateNormalMap: boolean): Promise<SKSpriteNode>Swift declarationconvenience init(imageNamed name: String, normalMapped generateNormalMap: Bool)static initTextureNormalMap(texture?: (SKTexture) | null, normalMap?: (SKTexture) | null): Promise<SKSpriteNode>Swift declarationconvenience init(texture: SKTexture?, normalMap: SKTexture?)static initTextureSize(texture: (SKTexture) | null, size: { width: number; height: number }): Promise<SKSpriteNode>Swift declarationconvenience init(texture: SKTexture?, size: CGSize)static initCoder(aDecoder: _Foundation_NSCoder): Promise<(SKSpriteNode) | null>Swift declarationinit?(coder aDecoder: NSCoder)static initColorSize(color: _UIKit_UIColor, size: { width: number; height: number }): Promise<SKSpriteNode>Swift declarationconvenience init(color: UIColor, size: CGSize)static initImageNamed(name: string): Promise<SKSpriteNode>Swift declarationconvenience init(imageNamed name: String)static initTexture(texture?: (SKTexture) | null): Promise<SKSpriteNode>Swift declarationconvenience init(texture: SKTexture?)static initTextureColorSize(texture: (SKTexture) | null, color: _UIKit_UIColor, size: { width: number; height: number }): Promise<SKSpriteNode>Swift declarationinit(texture: SKTexture?, color: UIColor, size: CGSize)scale(size: { width: number; height: number }): Promise<void>Swift declarationfunc scale(to size: CGSize)setValue(value: SKAttributeValue, key: string): Promise<void>Swift declarationfunc setValue(_ value: SKAttributeValue, forAttribute key: String)value(key: string): Promise<(SKAttributeValue) | null>Swift declarationfunc value(forAttributeNamed key: String) -> SKAttributeValue?get anchorPoint(): Promise<{ x: number; y: number }>Swift declarationvar anchorPoint: CGPoint { get set }setAnchorPoint(value: { x: number; y: number }): Promise<void>Swift declarationvar anchorPoint: CGPoint { get set }get attributeValues(): Promise<Record<string, SKAttributeValue>>Swift declarationvar attributeValues: [String : SKAttributeValue] { get set }setAttributeValues(value: Record<string, SKAttributeValue>): Promise<void>Swift declarationvar attributeValues: [String : SKAttributeValue] { get set }get blendMode(): Promise<SKBlendMode>Swift declarationvar blendMode: SKBlendMode { get set }setBlendMode(value: SKBlendMode): Promise<void>Swift declarationvar blendMode: SKBlendMode { get set }get centerRect(): Promise<{ x: number; y: number; width: number; height: number }>Swift declarationvar centerRect: CGRect { get set }setCenterRect(value: { x: number; y: number; width: number; height: number }): Promise<void>Swift declarationvar centerRect: CGRect { get set }get color(): Promise<_UIKit_UIColor>Swift declarationvar color: UIColor { get set }setColor(value: _UIKit_UIColor): Promise<void>Swift declarationvar color: UIColor { get set }get colorBlendFactor(): Promise<number>Swift declarationvar colorBlendFactor: CGFloat { get set }setColorBlendFactor(value: number): Promise<void>Swift declarationvar colorBlendFactor: CGFloat { get set }get lightingBitMask(): Promise<number>Swift declarationvar lightingBitMask: UInt32 { get set }setLightingBitMask(value: number): Promise<void>Swift declarationvar lightingBitMask: UInt32 { get set }get normalTexture(): Promise<(SKTexture) | null>Swift declarationvar normalTexture: SKTexture? { get set }setNormalTexture(value?: (SKTexture) | null): Promise<void>Swift declarationvar normalTexture: SKTexture? { get set }get shader(): Promise<(SKShader) | null>Swift declarationvar shader: SKShader? { get set }setShader(value?: (SKShader) | null): Promise<void>Swift declarationvar shader: SKShader? { get set }get shadowCastBitMask(): Promise<number>Swift declarationvar shadowCastBitMask: UInt32 { get set }setShadowCastBitMask(value: number): Promise<void>Swift declarationvar shadowCastBitMask: UInt32 { get set }get shadowedBitMask(): Promise<number>Swift declarationvar shadowedBitMask: UInt32 { get set }setShadowedBitMask(value: number): Promise<void>Swift declarationvar shadowedBitMask: UInt32 { get set }get size(): Promise<{ width: number; height: number }>Swift declarationvar size: CGSize { get set }setSize(value: { width: number; height: number }): Promise<void>Swift declarationvar size: CGSize { get set }get texture(): Promise<(SKTexture) | null>Swift declarationvar texture: SKTexture? { get set }setTexture(value?: (SKTexture) | null): Promise<void>Swift declarationvar texture: SKTexture? { get set }get customPlaygroundQuickLook(): Promise<SDKHandle>Swift declaration@MainActor @preconcurrency var customPlaygroundQuickLook: PlaygroundQuickLook { get }A custom playground Quick Look for this instance. If this type has value semantics, the `PlaygroundQuickLook` instance should be unaffected by subsequent mutations.
1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
SKSpriteNode.init()
inherited init: cannot prove legal (class declares 7 custom initializers)