<!--
{
  "availability" : [
    "iOS: 26.2.0 -",
    "iPadOS: 26.2.0 -",
    "macCatalyst: 26.2.0 -",
    "macOS: 26.2.0 -",
    "visionOS: 26.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AuthenticationServices",
  "identifier" : "/documentation/AuthenticationServices/ASAutoFillURLScope",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Authentication Services"
    ],
    "preciseIdentifier" : "s:22AuthenticationServices18ASAutoFillURLScopeV"
  },
  "title" : "ASAutoFillURLScope"
}
-->

# ASAutoFillURLScope

This structure represents the subset of URL components supported for the AutoFill of credentials.

```
struct ASAutoFillURLScope
```

## Topics

### Initializers

[`init(scheme: ASAutoFillURLScope.Scheme, host: String, port: Int?, path: String)`](/documentation/AuthenticationServices/ASAutoFillURLScope/init(scheme:host:port:path:))

Creates a URL components instance

[`init?(url: URL)`](/documentation/AuthenticationServices/ASAutoFillURLScope/init(url:))

Initialize with the components of a URL.

### Instance Properties

[`var host: String`](/documentation/AuthenticationServices/ASAutoFillURLScope/host)

The host subcomponent.

[`var path: String`](/documentation/AuthenticationServices/ASAutoFillURLScope/path)

The path subcomponent.

[`var port: Int?`](/documentation/AuthenticationServices/ASAutoFillURLScope/port)

The port subcomponent.

[`var scheme: ASAutoFillURLScope.Scheme`](/documentation/AuthenticationServices/ASAutoFillURLScope/scheme-swift.property)

The scheme subcomponent of the URL.

[`var url: URL?`](/documentation/AuthenticationServices/ASAutoFillURLScope/url)

A URL created from the components.

### Enumerations

[`enum Scheme`](/documentation/AuthenticationServices/ASAutoFillURLScope/Scheme-swift.enum)

## Relationships

### Conforms To

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

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

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

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

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

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

---

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)