Skip to content

Instantly share code, notes, and snippets.

@jppsantos
Created September 25, 2020 18:01
Show Gist options
  • Save jppsantos/c2b8cfa89021a19fc753f3c1f7b47d48 to your computer and use it in GitHub Desktop.
Save jppsantos/c2b8cfa89021a19fc753f3c1f7b47d48 to your computer and use it in GitHub Desktop.
var baseURL = URL(string: "https://www.purchase.com")
baseURL?.appendPathComponent(PurchaseEndpoints.product.rawValue)
//output: = https://www.purchase.com/product
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment