<!--
{
  "availability" : [
    "iOS: 27.3.0 -",
    "iPadOS: 27.3.0 -",
    "macCatalyst: 27.3.0 -",
    "macOS: 27.3.0 -",
    "visionOS: 27.3.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AuthenticationServices",
  "identifier" : "/documentation/AuthenticationServices/DeliveredVerificationCodesManager/presentAccountsToSetUp(_:reason:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Authentication Services",
      "SwiftUI",
      "_AuthenticationServices_SwiftUI"
    ],
    "preciseIdentifier" : "s:31_AuthenticationServices_SwiftUI33DeliveredVerificationCodesManagerV22presentAccountsToSetUp_6reasonSbSay0aB0011ASDeliveredfgH0C016AccountRecordForlM0VG_AH0lM6ReasonOtYaKF"
  },
  "title" : "presentAccountsToSetUp(_:reason:)"
}
-->

# presentAccountsToSetUp(_:reason:)

Present system UI that shows the user email accounts they may wish to set up in Mail to receive one-time codes.

```
@MainActor func presentAccountsToSetUp(_ accounts: [DeliveredVerificationCodesManager.AccountRecordForSetUp], reason: DeliveredVerificationCodesManager.SetUpReason) async throws -> Bool
```

## Parameters

`accounts`

The list of accounts to check.

`reason`

Why you need verification codes for these accounts.

## Return Value

Whether the client should proceed with the operation that required this check.

## Discussion

If any of the supplied accounts receive codes at an email address that is not set up in Mail on the current
device, the system will present UI that explains to the user that they may want to set up the account so that
the device can receive one-time codes sent there.
No UI will be presented if all email addresses are already set up.

> Throws: `DeliveredVerificationCodesManager.VerificationError` if the check cannot be performed.

---

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)