URLs are omnipresent in today’s world, and iOS apps are no exception.
The URLs you use in Swift can identify different resources. The most common examples are web content, local files, and REST API endpoints.
The way you handle a URL in Swift depends on two things. The resource it identifies and how you manage the resource in the architecture of your app.