---
title: "isSuperset(of:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nscharacterset/issuperset(of:)"
---

# isSuperset(of:)

Returns a Boolean value that indicates whether the receiver is a superset of another given character set.

## Declaration

```swift
func isSuperset(of theOtherSet: CharacterSet) -> Bool
```

## Parameters

- `theOtherSet`: A character set.

## Return Value

Return Value true if the receiver is a superset of theOtherSet, otherwise false.

## See Also

### Testing Set Membership

- [characterIsMember(_:)](foundation/nscharacterset/characterismember(_:).md)
- [hasMemberInPlane(_:)](foundation/nscharacterset/hasmemberinplane(_:).md)
- [longCharacterIsMember(_:)](foundation/nscharacterset/longcharacterismember(_:).md)
