---
title: SKLabelNode
framework: spritekit
role: symbol
role_heading: Class
path: spritekit/sklabelnode
---

# SKLabelNode

A graphical element that draws text.

## Declaration

```swift
class SKLabelNode
```

## Mentioned in

Adding Text to a Scene Getting Started with Nodes Warping SpriteKit Content By Using an Effect Node

## Overview

Overview SKLabelNode allows you to render text in your scene. You can define a custom style using properties such as fontName and fontColor, or configure the look of your text with an NSAttributedString.

## Topics

### Getting Started with Labels

- [Adding Text to a Scene](spritekit/adding-text-to-a-scene.md)

### Creating a Label

- [init(fontNamed:)](spritekit/sklabelnode/init(fontnamed:).md)
- [init(text:)](spritekit/sklabelnode/init(text:).md)
- [init(attributedText:)](spritekit/sklabelnode/init(attributedtext:).md)

### Setting a Label’s Text

- [text](spritekit/sklabelnode/text.md)
- [attributedText](spritekit/sklabelnode/attributedtext.md)

### Specifying a Label’s Font

- [fontColor](spritekit/sklabelnode/fontcolor.md)
- [fontName](spritekit/sklabelnode/fontname.md)
- [fontSize](spritekit/sklabelnode/fontsize.md)

### Controlling a Label’s Alignment

- [verticalAlignmentMode](spritekit/sklabelnode/verticalalignmentmode.md)
- [SKLabelVerticalAlignmentMode](spritekit/sklabelverticalalignmentmode.md)
- [horizontalAlignmentMode](spritekit/sklabelnode/horizontalalignmentmode.md)
- [SKLabelHorizontalAlignmentMode](spritekit/sklabelhorizontalalignmentmode.md)

### Defining a Label’s Line-Breaking Behavior

- [preferredMaxLayoutWidth](spritekit/sklabelnode/preferredmaxlayoutwidth.md)
- [lineBreakMode](spritekit/sklabelnode/linebreakmode.md)
- [numberOfLines](spritekit/sklabelnode/numberoflines.md)

### Colorizing a Label

- [color](spritekit/sklabelnode/color.md)
- [colorBlendFactor](spritekit/sklabelnode/colorblendfactor.md)

### Configuring Alpha Blending

- [blendMode](spritekit/sklabelnode/blendmode.md)

## Relationships

### Inherits From

- [SKNode](spritekit/sknode.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)
- [NSStandardKeyBindingResponding](appkit/nsstandardkeybindingresponding.md)
- [NSTouchBarProvider](appkit/nstouchbarprovider.md)
- [NSUserActivityRestoring](appkit/nsuseractivityrestoring.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [UIActivityItemsConfigurationProviding](uikit/uiactivityitemsconfigurationproviding.md)
- [UICoordinateSpace](uikit/uicoordinatespace.md)
- [UIFocusEnvironment](uikit/uifocusenvironment.md)
- [UIFocusItem](uikit/uifocusitem.md)
- [UIFocusItemContainer](uikit/uifocusitemcontainer.md)
- [UIPasteConfigurationSupporting](uikit/uipasteconfigurationsupporting.md)
- [UIResponderStandardEditActions](uikit/uiresponderstandardeditactions.md)
- [UIUserActivityRestoring](uikit/uiuseractivityrestoring.md)

## See Also

### Nodes that Draw

- [Maximizing Node Drawing Performance](spritekit/maximizing-node-drawing-performance.md)
- [SKSpriteNode](spritekit/skspritenode.md)
- [SKShapeNode](spritekit/skshapenode.md)
- [SKEmitterNode](spritekit/skemitternode.md)
- [SKVideoNode](spritekit/skvideonode.md)
- [SKTileMapNode](spritekit/sktilemapnode.md)
- [SK3DNode](spritekit/sk3dnode.md)
