---
title: current
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/nsassertionhandler/current
---

# current

Returns the NSAssertionHandler object associated with the current thread.

## Declaration

```swift
class var current: NSAssertionHandler { get }
```

## Return Value

Return Value The NSAssertionHandler object associated with the current thread.

## Discussion

Discussion If no assertion handler is associated with the current thread, this method creates one and assigns it to the thread.
