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

# init(_:)

Initializes this type eraser with a user identity to wrap.

## Declaration

```swift
init<T>(_ userIdentity: T) where T : UserIdentity
```

## See Also

### Creating a user identity

- [init(from:)](assignables/anyuseridentity/init(from:).md)
