---
title: inverted
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nscharacterset/inverted
---

# inverted

A character set containing only characters that don’t exist in the receiver.

## Declaration

```swift
var inverted: CharacterSet { get }
```

## Discussion

Discussion Using the inverse of an immutable character set is much more efficient than inverting a mutable character set.

## See Also

### Related Documentation

- [invert()](foundation/nsmutablecharacterset/invert().md)
