<!--
{
  "availability" : [
    "iOS: 16.4.0 -",
    "iPadOS: 16.4.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AuthenticationServices",
  "identifier" : "/documentation/AuthenticationServices/AuthorizationController/performAutoFillAssistedRequests(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Authentication Services",
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:31_AuthenticationServices_SwiftUI23AuthorizationControllerV31performAutoFillAssistedRequestsyAA21ASAuthorizationResultOSaySo0L7RequestCGYaKF"
  },
  "title" : "performAutoFillAssistedRequests(_:)"
}
-->

# performAutoFillAssistedRequests(_:)

Performs an AutoFill-assisted authorization request from the provided array.

```
@MainActor func performAutoFillAssistedRequests(_ requests: [ASAuthorizationRequest]) async throws -> ASAuthorizationResult
```

## Parameters

`requests`

An array of supported authorization requests.

## Return Value

The request’s outcome. For more information, see [`ASAuthorizationResult`](/documentation/AuthenticationServices/ASAuthorizationResult).

## Discussion

To perform AutoFill-assisted authorization requests, add the appropriate <doc://com.apple.documentation/documentation/SwiftUI/View/textContentType(_:)-ufdv> to any sign-in related fields, such as those for usernames and passwords:

```swift
TextField("Username", text: $username)
    .textContentType(.username)
```

Then use <doc://com.apple.documentation/documentation/SwiftUI/View/task(name:priority:file:line:_:)> or <doc://com.apple.documentation/documentation/SwiftUI/View/task(id:name:priority:file:line:_:)> to perform the requests when the view appears:

```swift
.task {
    // Create the authorization requests.
    async let requests = makeAutoFillAuthorizationRequests()
    // Perform the request and await its result.
    let result = try await authorizationController
        .performAutoFillAssistedRequests(requests)
    switch result {
        // Process the request's result.
    }
}
```

---

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)