---
title: "string(_:)"
framework: Assignables
role: symbol
role_heading: Type Method
platforms: [iOS 17.4+, iPadOS 17.4+, Mac Catalyst 17.4+]
path: "assignables/useridentityfactory/string(_:)"
---

# string(_:)

Creates a StringUserIdentity with the given string value.

## Declaration

```swift
static func string(_ value: String) -> StringUserIdentity
```

## Parameters

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

## Return Value

Return Value A StringUserIdentity object with the given string value.
