---
title: NSNull
framework: foundation
role: symbol
role_heading: Class
path: foundation/nsnull
---

# NSNull

A singleton object used to represent null values in collection objects that don’t allow nil values.

## Declaration

```swift
class NSNull
```

## Mentioned in

Implementing Handoff in Your App

## Overview

Overview NSNull is “toll-free bridged” with its Core Foundation counterpart, CFNull. See Toll-Free Bridging for more information on toll-free bridging.

## Topics

### Initializers

- [init(coder:)](foundation/nsnull/init(coder:).md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CAAction](quartzcore/caaction.md)
- [CVarArg](swift/cvararg.md)
- [Copyable](swift/copyable.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Special Semantic Values

- [NSNotFound](foundation/nsnotfound-9t5v2.md)
- [NSNotFound](foundation/nsnotfound-4qp9h.md)
