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

# performAutoFillAssistedRequest(_:)

Performs an AutoFill-assisted authorization request.

```
@MainActor func performAutoFillAssistedRequest(_ request: ASAuthorizationRequest) async throws -> ASAuthorizationResult
```

## Parameters

`request`

The authorization request to perform.

## 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 request when the view appears:

```swift
.task {
    // Create the authorization request.
    async let request = makeAutoFillAuthorizationRequest()
    // Perform the request and await its result.
    let result = try await authorizationController
        .performAutoFillAssistedRequest(request)
    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)