<!--
{
  "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/init(scheme:host:port:path:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Authentication Services"
    ],
    "preciseIdentifier" : "s:22AuthenticationServices18ASAutoFillURLScopeV6scheme4host4port4pathA2C6SchemeO_SSSiSgSStcfc"
  },
  "title" : "init(scheme:host:port:path:)"
}
-->

# init(scheme:host:port:path:)

Creates a URL components instance

```
init(scheme: ASAutoFillURLScope.Scheme = .https, host: String, port: Int? = nil, path: String = "")
```

---

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)