---
title: "init(value:)"
framework: Assignables
role: symbol
role_heading: Initializer
platforms: [iOS 17.4+, iPadOS 17.4+, Mac Catalyst 17.4+]
path: "assignables/stringuseridentity/init(value:)"
---

# init(value:)

Initializes a StringUserIdentity with the given string value.

## Declaration

```swift
init(value: String)
```

## Parameters

- `value`: The value of the string to contain in this user identity.
