---
title: logicalMaximum
framework: corehid
role: symbol
role_heading: Instance Property
path: corehid/hidelement/logicalmaximum
---

# logicalMaximum

The logical maximum for this element’s data.

## Declaration

```swift
var logicalMaximum: Int64?
```

## Discussion

Discussion The logical maximum is specified in the report descriptor for an element. It determines the maximum raw value that should be considered valid, anything above this value is invalid. See the HID specification for more details: https://www.usb.org/hid.
