---
title: caseSensitive
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/scanner/casesensitive
---

# caseSensitive

Flag that indicates whether the receiver distinguishes case in the characters it scans.

## Declaration

```swift
var caseSensitive: Bool { get set }
```

## Discussion

Discussion true if the receiver distinguishes case in the characters it scans, otherwise false. The default value is false. Note that case sensitivity doesn’t apply to the characters to be skipped.

## See Also

### Configuring a Scanner

- [scanLocation](foundation/scanner/scanlocation.md)
- [charactersToBeSkipped](foundation/scanner/characterstobeskipped.md)
- [locale](foundation/scanner/locale.md)
