<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: -",
    "macOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "IdentityDocumentServices",
  "identifier" : "/documentation/IdentityDocumentServices/ISO18013MobileDocumentRequest/DocumentRequest/init(documentType:namespaces:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "IdentityDocumentServices"
    ],
    "preciseIdentifier" : "s:24IdentityDocumentServices014ISO18013MobileB7RequestV0bF0V12documentType10namespacesAESS_SDySSSDySSAC11ElementInfoVGGtcfc"
  },
  "title" : "init(documentType:namespaces:)"
}
-->

# init(documentType:namespaces:)

Initializes a document request.

```
init(documentType: String, namespaces: [String : [String : ISO18013MobileDocumentRequest.ElementInfo]])
```

## Parameters

`documentType`

The document type requested.

`namespaces`

The namespaces in the document to request.

---

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)