<!--
{
  "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/ASImportableCredential/CustomFields",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Authentication Services"
    ],
    "preciseIdentifier" : "s:22AuthenticationServices22ASImportableCredentialO12CustomFieldsV"
  },
  "title" : "ASImportableCredential.CustomFields"
}
-->

# ASImportableCredential.CustomFields

A representation of CustomFields as defined in the [Credential Exchange Format (CXF) specs](https://fidoalliance.org/specs/cx/cxf-v1.0-rd-20250313.html)

```
struct CustomFields
```

## Topics

### Initializers

[`init(id: Data?, label: String?, fields: [ASImportableEditableField])`](/documentation/AuthenticationServices/ASImportableCredential/CustomFields/init(id:label:fields:))

### Instance Properties

[`var fields: [ASImportableEditableField]`](/documentation/AuthenticationServices/ASImportableCredential/CustomFields/fields)

The collection of fields in this section.

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

Optional: Unique identifier for this section of custom fields.

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

Optional: A descriptive title for this section of custom fields.

## Relationships

### Conforms To

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

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

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

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

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

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

---

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)