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

# init(texture:size:)

Initializes a new tile definition of a specified size with a single texture.

## Declaration

```swift
init(texture: SKTexture, size: CGSize)
```

## Parameters

- `texture`: The texture to reference for the definition’s content.
- `size`: The size of the tile in points.

## Return Value

Return Value A new tile definition.
