---
title: maxPINLength
framework: cryptotokenkit
role: symbol
role_heading: Instance Property
path: cryptotokenkit/tksmartcardpinformat/maxpinlength
---

# maxPINLength

The maximum number of characters to form a valid PIN. 8 by default.

## Declaration

```swift
var maxPINLength: Int { get set }
```

## See Also

### Configuring PIN Formatting

- [charset](cryptotokenkit/tksmartcardpinformat/charset-swift.property.md)
- [encoding](cryptotokenkit/tksmartcardpinformat/encoding-swift.property.md)
- [minPINLength](cryptotokenkit/tksmartcardpinformat/minpinlength.md)
- [pinBlockByteLength](cryptotokenkit/tksmartcardpinformat/pinblockbytelength.md)
- [pinJustification](cryptotokenkit/tksmartcardpinformat/pinjustification.md)
- [pinBitOffset](cryptotokenkit/tksmartcardpinformat/pinbitoffset.md)
- [pinLengthBitOffset](cryptotokenkit/tksmartcardpinformat/pinlengthbitoffset.md)
- [pinLengthBitSize](cryptotokenkit/tksmartcardpinformat/pinlengthbitsize.md)
