<!--
{
  "availability" : [
    "iOS: 18.2.0 -",
    "iPadOS: 18.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIApplication/isDefault(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "s:So13UIApplicationC5UIKitE9isDefaultySbSo0A8CategoryVKF"
  },
  "title" : "isDefault(_:)"
}
-->

# isDefault(_:)

Reports whether this app is the person’s default app in the given category.

```
nonisolated func isDefault(_ category: UIApplication.Category) throws -> Bool
```

## Parameters

`category`

The type of app for which you test whether your app is the default.

## Return Value

If the system determines the status of the app, this method returns `true` if the app is the default app in the category, and `false` otherwise. If the system doesn’t determine the status, or the app exceeds the threshold rate for calling this method, it throws an error.

## Discussion

To reduce the likelihood that users face continuous requests to set a browser as their default, this API only tells the browser app if it’s the default up to four times in a year. If you call the method too frequently, it throws an error with the domain [`UIApplicationCategoryDefaultErrorDomain`](/documentation/UIKit/UIApplicationCategoryDefaultErrorDomain) and the code [`rateLimited`](/documentation/UIKit/UIApplication/CategoryDefaultError/rateLimited). The error’s user information dictionary contains these keys:

- [`statusLastProvidedDateErrorKey`](/documentation/UIKit/UIApplication/CategoryDefaultError/statusLastProvidedDateErrorKey): The date at which the app most recently received a `true` or `false` response from this method.
- [`retryAvailableDateErrorKey`](/documentation/UIKit/UIApplication/CategoryDefaultError/retryAvailableDateErrorKey): The date at which the app can next request an updated response.

---

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)