<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "TipKit",
  "identifier" : "/documentation/TipKit/Tips/ConfigurationOption/DatastoreLocation/url(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "TipKit"
    ],
    "preciseIdentifier" : "s:6TipKit4TipsO19ConfigurationOptionV17DatastoreLocationV3urlyAG10Foundation3URLVFZ"
  },
  "title" : "url(_:)"
}
-->

# url(_:)

Configuration option for persisting tips at a custom on-disk location.

```
static func url(_ url: URL) -> Tips.ConfigurationOption.DatastoreLocation
```

## Parameters

`url`

URL for on-disk location of the tips datastore.

## Discussion

```swift
do {
    let tipsDatastoreLocation = URL.applicationSupportDirectory.appendingPathComponent("LandmarkTips")
    // Save the tips datastore at the specified URL.
    try Tips.configure([
        .datastoreLocation(.url(tipsDatastoreLocation))
    ])
}
catch {
    print("Error initializing TipKit \(error)")
}
```

---

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)