---
title: maskPattern
framework: coreimage
role: symbol
role_heading: Instance Property
path: coreimage/ciqrcodedescriptor/maskpattern-swift.property
---

# maskPattern

The data mask pattern for the QR code symbol.

## Declaration

```swift
var maskPattern: UInt8 { get }
```

## Discussion

Discussion QR Codes support eight data mask patterns, which are used to avoid large black or large white areas inside the symbol body. Valid values range from 0 to 7.

## See Also

### Examining a Descriptor

- [errorCorrectedPayload](coreimage/ciqrcodedescriptor/errorcorrectedpayload-swift.property.md)
- [symbolVersion](coreimage/ciqrcodedescriptor/symbolversion-swift.property.md)
- [errorCorrectionLevel](coreimage/ciqrcodedescriptor/errorcorrectionlevel-swift.property.md)
