<!--
{
  "availability" : [
    "macOS: 10.10.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSBackgroundActivityScheduler/tolerance",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSBackgroundActivityScheduler(py)tolerance"
  },
  "title" : "tolerance"
}
-->

# tolerance

A value of type [`TimeInterval`](/documentation/Foundation/TimeInterval), which specifies a range of time during which the background activity may occur.

```
var tolerance: TimeInterval { get set }
```

## Discussion

A nominal fire date for scheduled background activity is calculated based on a combination of the [`interval`](/documentation/Foundation/NSBackgroundActivityScheduler/interval) property value and the time the activity began or the last execution date. The [`tolerance`](/documentation/Foundation/NSBackgroundActivityScheduler/tolerance) property specifies a grace period—a range of time before and after the nominal fire date, during which the activity may be invoked. As the activity nears the end of its grace period, the system schedules the activity more aggressively. The default tolerance period is half the value of the [`interval`](/documentation/Foundation/NSBackgroundActivityScheduler/interval) property. See [`Configure Scheduler Properties`](/documentation/Foundation/NSBackgroundActivityScheduler#Configure-Scheduler-Properties).

## See Also

[`TimeInterval`](/documentation/Foundation/TimeInterval)

A number of seconds.



---

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)