---
metadata:
  - name: generator
    content: Diplodoc Platform v5.54.2
alternate:
  - https://appmetrica.yandex.by/docs/en/sdk/ios/analytics/swift/MutableUserProfile.md
  - https://appmetrica.yandex.by/docs/ru/sdk/ios/analytics/swift/MutableUserProfile.md
  - href: en/sdk/ios/analytics/swift/MutableUserProfile.md
    type: text/markdown
    title: Markdown version
  - href: ../../../../llms.txt
    type: text/markdown
    title: llms.txt
---
> **Documentation Index:** Fetch the complete configuration index at https://appmetrica.yandex.by/docs/en/llms.txt

# MutableUserProfile class

The mutable version of the [UserProfile](https://appmetrica.yandex.by/docs/en/sdk/ios/analytics/swift/UserProfile.md) class for storing the user profile.

A user profile is a set of user attributes. User profile details are displayed in the AppMetrica report on user profiles.

The instance of the `MutableUserProfile` class should be passed to the AppMetrica server using the [reportUserProfile](https://appmetrica.yandex.by/docs/en/sdk/ios/analytics/swift/AppMetrica.md#reportuserprofile_onfailure-method_reportuserprofile) method of the [AppMetrica](https://appmetrica.yandex.by/docs/en/sdk/ios/analytics/swift/AppMetrica.md) class. Use methods of the [ProfileAttribute](https://appmetrica.yandex.by/docs/en/sdk/ios/analytics/swift/ProfileAttribute.md) class to create user attributes.

## Instance methods {#instance_summary}

#|
|| [apply(_:)](#method_apply) | Updates a single attribute of the user profile. ||
|| [apply(from:)](#method_applyFromArray) | Updates several attributes of the user profile. ||
|#

## Method descriptions {#method_detail}

### apply(_:) {#method_apply}

```swift translate=no
func apply(_ update: UserProfileUpdate)
```

Updates a single attribute of the user profile.

**Parameters:**

#|
|| `update` | The `UserProfileUpdate` class instance. ||
|#

### apply(from:) {#method_applyFromArray}

```swift translate=no
func apply(from updatesArray: [UserProfileUpdate])
```

Updates several attributes of the user profile.

**Parameters:**

#|
|| `updatesArray` | Array of `UserProfileUpdate` instances. ||
|#
