<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "SpriteKit",
  "identifier" : "/documentation/SpriteKit/SKSpriteNode/init(imageNamed:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "SpriteKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SKSpriteNode(im)initWithImageNamed:"
  },
  "title" : "init(imageNamed:)"
}
-->

# init(imageNamed:)

Initializes a textured sprite using an image file.

```
convenience init(imageNamed name: String)
```

## Parameters

`name`

The name of an image file stored in the app bundle.

## Return Value

A newly initialized sprite object.

## Discussion

This method creates a new texture object from the image file and assigns that texture to the [`texture`](/documentation/SpriteKit/SKSpriteNode/texture) property, the [`normalTexture`](/documentation/SpriteKit/SKSpriteNode/normalTexture) properties is set to `nil`. The [`size`](/documentation/SpriteKit/SKSpriteNode/size) property of the sprite is set to the dimensions of the image. The [`color`](/documentation/SpriteKit/SKSpriteNode/color) property is set to white with an alpha of zero `(1.0,1.0,1.0,0.0)`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)