<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AuthenticationServices",
  "identifier" : "/documentation/AuthenticationServices/ASImportableEditableField",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Authentication Services"
    ],
    "preciseIdentifier" : "s:22AuthenticationServices25ASImportableEditableFieldV"
  },
  "title" : "ASImportableEditableField"
}
-->

# ASImportableEditableField

A field that someone can edit within a credential.

```
struct ASImportableEditableField
```

## Overview

Examples of editable fields include [`userName`](/documentation/AuthenticationServices/ASImportableCredential/BasicAuthentication/userName) and [`password`](/documentation/AuthenticationServices/ASImportableCredential/BasicAuthentication/password) in [`ASImportableCredential.BasicAuthentication`](/documentation/AuthenticationServices/ASImportableCredential/BasicAuthentication).

This type is a representation of `EditableField` as defined in the Credential Exchange Format (CXF) specification.
You can supply a JSON representation of a CXF `EditableField` to initialize an instance of this struct by using a <doc://com.apple.documentation/documentation/Foundation/JSONDecoder> and calling <doc://com.apple.documentation/documentation/Foundation/JSONDecoder/decode(_:from:)>.

## Topics

### Creating an editable field

[`init(id: Data?, fieldType: ASImportableEditableField.FieldType, value: String, label: String?)`](/documentation/AuthenticationServices/ASImportableEditableField/init(id:fieldType:value:label:))

Creates an editable field instance.

### Accessing field properties

[`var id: Data?`](/documentation/AuthenticationServices/ASImportableEditableField/id)

A unique identifier for this editable field.

[`var fieldType: ASImportableEditableField.FieldType`](/documentation/AuthenticationServices/ASImportableEditableField/fieldType-swift.property)

The type of this editable field.

[`enum FieldType`](/documentation/AuthenticationServices/ASImportableEditableField/FieldType-swift.enum)

An enumeration of editable field types.

[`var value: String`](/documentation/AuthenticationServices/ASImportableEditableField/value)

The value stored in this editable field.

[`var label: String?`](/documentation/AuthenticationServices/ASImportableEditableField/label)

A value describing the field, if any.

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`Decodable`](/documentation/Swift/Decodable)

[`Encodable`](/documentation/Swift/Encodable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Equatable`](/documentation/Swift/Equatable)

[`Hashable`](/documentation/Swift/Hashable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)