×

Create URL

iOS 15 +

Notes

Creates a URL from components.

Syntax

createURL(scheme: <#String (Allows Variables)#>, host: <#String (Allows Variables)#>, path: <#String (Allows Variables)#>, queryItems: <#Array#>, fragment: <#String (Allows Variables)#>, user: <#String (Allows Variables)#>, password: <#String (Allows Variables)#>, useCustomPort: <#Boolean#>, port: <#Integer#>)

Example

createURL(scheme: "https", host: "blog.actuallyzach.com", path: ""/"", queryItems: [], fragment: """", user: """", password: """", useCustomPort: true, port: 42)