---
title: verticalSizeClass
framework: xcuiautomation
role: symbol
role_heading: Instance Property
path: xcuiautomation/xcuielementattributes/verticalsizeclass
---

# verticalSizeClass

The vertical size class of the element.

## Declaration

```swift
var verticalSizeClass: XCUIElement.SizeClass { get }
```

## See Also

### Size

- [frame](xcuiautomation/xcuielementattributes/frame.md)
- [horizontalSizeClass](xcuiautomation/xcuielementattributes/horizontalsizeclass.md)
- [XCUIElement.SizeClass](xcuiautomation/xcuielement/sizeclass.md)
