---
title: "init(texture:)"
framework: spritekit
role: symbol
role_heading: Initializer
path: "spritekit/sktiledefinition/init(texture:)"
---

# init(texture:)

Initializes a new tile definition with a single texture.

## Declaration

```swift
init(texture: SKTexture)
```

## Parameters

- `texture`: The texture to reference for the definition’s size and content.

## Return Value

Return Value A new tile definition.

## Discussion

Discussion The size of the newly created tile definition will be the same as the texture used to initialize it.
