---
title: "init(textStyle:scale:)"
framework: uikit
role: symbol
role_heading: Initializer
path: "uikit/uiimage/symbolconfiguration-swift.class/init(textstyle:scale:)"
---

# init(textStyle:scale:)

Creates a configuration object with the specified font text style and scale information.

## Declaration

```swift
convenience init(textStyle: UIFont.TextStyle, scale: UIImage.SymbolScale)
```

## Parameters

- `textStyle`: The system text styles that support Dynamic Type. For a list of possible values, see doc://com.apple.uikit/documentation/UIKit/UIFont/TextStyle.
- `scale`: The symbol image scale variant to select. Use this parameter to make the image appear bigger or smaller than text that uses the same text style. For a list of possible values, see doc://com.apple.uikit/documentation/UIKit/UIImage/SymbolScale.

## Return Value

Return Value A new symbol configuration object with the specified information.

## Discussion

Discussion Symbol images pick up the font styling information associated with the specified text style, causing them to match any text that uses the same style. Like it does for the text, UIKit scales the image to match the current Dynamic Type setting.

## See Also

### Creating a symbol configuration

- [init(pointSize:)](uikit/uiimage/symbolconfiguration-swift.class/init(pointsize:).md)
- [init(pointSize:weight:)](uikit/uiimage/symbolconfiguration-swift.class/init(pointsize:weight:).md)
- [init(pointSize:weight:scale:)](uikit/uiimage/symbolconfiguration-swift.class/init(pointsize:weight:scale:).md)
- [init(scale:)](uikit/uiimage/symbolconfiguration-swift.class/init(scale:).md)
- [init(textStyle:)](uikit/uiimage/symbolconfiguration-swift.class/init(textstyle:).md)
- [init(weight:)](uikit/uiimage/symbolconfiguration-swift.class/init(weight:).md)
- [init(font:)](uikit/uiimage/symbolconfiguration-swift.class/init(font:).md)
- [init(font:scale:)](uikit/uiimage/symbolconfiguration-swift.class/init(font:scale:).md)
- [UIImage.SymbolScale](uikit/uiimage/symbolscale.md)
- [UIImage.SymbolWeight](uikit/uiimage/symbolweight.md)
- [UIImage.SymbolColorRenderingMode](uikit/uiimage/symbolcolorrenderingmode.md)
- [UIImage.SymbolVariableValueMode](uikit/uiimage/symbolvariablevaluemode.md)
