---
title: maximumNumberOfTitleLines
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uimenudisplaypreferences/maximumnumberoftitlelines
---

# maximumNumberOfTitleLines

The number of lines the menu displays for an item’s title or subtitle before it truncates the text.

## Declaration

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

## Discussion

Discussion By default, UIMenu restricts the number of lines in a menu item’s title or subtitle to create a balance between a compact and expressive display. If you dynamically prepare menu items that might contain more text, set this value to a higher number and use this object as the menu’s displayPreferences. note: Setting this property has no effect on menus in Mac Catalyst apps.
