---
title: "init(coder:)"
framework: spritekit
role: symbol
role_heading: Initializer
path: "spritekit/skspritenode/init(coder:)"
---

# init(coder:)

Tells you when to initialize a sprite from an archive.

## Declaration

```swift
init?(coder aDecoder: NSCoder)
```

## Discussion

Discussion Don’t call this function directly; the system calls this function when you should initialize your sprite from the argument archived data.
