UIView: showsLargeContentViewer property
The showsLargeContentViewer property determines whether, when the user has a very large text size set and long-presses this view, an enlarged version is shown in the middle of the screen. It is meant for small controls that can't grow with the text, such as those in toolbars and tab bars.
Value
A boolean.
| Value | Effect |
|---|---|
true | Shows the enlarged version on long press, with content from largeContentTitle and largeContentImage |
false | Doesn't show it |
- Readable and writable.
- The default is not verified in the simulator.
- Written values are converted with
Boolean():1, non-empty strings, and objects aretrue;0,'',null,undefined, andNaNarefalse. So writing'false'givestrue. - The type that reads back, and that writing back the original value leaves it unchanged, are checked in the acceptance tests. The effect is not verified in the simulator.
Examples
js
const item = new UIView();
item.showsLargeContentViewer = true;
item.largeContentTitle = 'Favorites';Effect: The reads and writes succeed. Whether the enlarged version appears on long press is not verified in the simulator.
Corresponding iOS API
UIView.showsLargeContentViewer.