<!--
{
  "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/configure(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "TipKit"
    ],
    "preciseIdentifier" : "s:6TipKit4TipsO9configureyySayAC19ConfigurationOptionVGKFZ"
  },
  "title" : "configure(_:)"
}
-->

# configure(_:)

Loads and configures the persistent state of all tips in your app.

```
static func configure(_ configuration: [Tips.ConfigurationOption] = []) throws
```

## Parameters

`configuration`

An array of options for customizing your tip’s datastore location and default frequency control interval.

## Discussion

> Note: This function must be called before tips display in your app.

Call this function during app initialization. By default, all tips persist to a default location
with a display frequency of [`immediate`](/documentation/TipKit/Tips/ConfigurationOption/DisplayFrequency/immediate).

```swift
@main
struct SampleApp: App {
    init() {
        do {
            // Configure tips in the app.
            try Tips.configure()
        }
        catch {
            // Handle TipKit errors
            print("Error initializing TipKit \(error.localizedDescription)")
        }
    }
}
```

To change the default location of where your tips persist use the convenience method [`datastoreLocation(_:)`](/documentation/TipKit/Tips/ConfigurationOption/datastoreLocation(_:)).

To change the display frequency use the convenience method [`displayFrequency(_:)`](/documentation/TipKit/Tips/ConfigurationOption/displayFrequency(_:)).

```swift
do {
    // Configure tips in the app.
    try Tips.configure([
        .datastoreLocation(.groupContainer(identifier: "MyGroupContainer")),
        .displayFrequency(.hourly)
    ])
}
catch {
    // Handle TipKit errors
    print("Error initializing TipKit \(error.localizedDescription)")
}
```

---

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)