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

# inverted

Returns an inverted copy of the receiver.

## Declaration

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

## See Also

### Inverting a Character Set

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