---
title: "init(text:color:)"
framework: managedsettingsui
role: symbol
role_heading: Initializer
path: "managedsettingsui/shieldconfiguration/label/init(text:color:)"
---

# init(text:color:)

Creates a shield label with the provided text and color.

## Declaration

```swift
init(text: String, color: UIColor)
```

## Parameters

- `text`: The text to display in the label.
- `color`: The color for the text in the label.
