---
metadata:
  - name: generator
    content: Diplodoc Platform v5.52.0
alternate:
  - https://appmetrica.yandex.by/docs/en/sdk/ios/analytics/swift/GenderAttribute.md
  - https://appmetrica.yandex.by/docs/ru/sdk/ios/analytics/swift/GenderAttribute.md
  - href: en/sdk/ios/analytics/swift/GenderAttribute.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

# GenderAttribute protocol

The protocol defines methods for updating the gender of a user profile.

## Instance methods {#instance_summary}

#|
|| [withValue(_:)](#method_withValue) | Updates the attribute value with the specified value from the [GenderType](https://appmetrica.yandex.by/docs/en/sdk/ios/analytics/swift/GenderType.md) enum. ||
|| [withValueReset()](#method_withValueReset) | Resets the attribute value. ||
|#

## Method descriptions {#method_detail}

### withValue(_:) {#method_withValue}

```swift translate=no
func withValue(_ value: GenderType) -> UserProfileUpdate
```

Updates the attribute value with the specified value from the [GenderType](https://appmetrica.yandex.by/docs/en/sdk/ios/analytics/swift/GenderType.md) enum.

**Parameters:**

#|
|| `value` | The value from the [GenderType](https://appmetrica.yandex.by/docs/en/sdk/ios/analytics/swift/GenderType.md) enum. ||
|#

**Returns:**

The `UserProfileUpdate` class instance.

### withValueReset() {#method_withValueReset}

```swift translate=no
func withValueReset() -> UserProfileUpdate
```

Resets the attribute value.

**Returns:**

The `UserProfileUpdate` class instance.
