iOS Style | Qt Quick Controls 6.4.1

- Qt 6.4
- Qt Quick Controls
- iOS Style
- Qt 6.4.1 Reference Documentation

# iOS Style

The iOS Style is a native-looking style for iOS based on image assets. More...

Import Statement: | import QtQuick.Controls.iOS
Since: | Qt 6.4

## Attached Properties

- theme : enumeration

## Detailed Description

The iOS style is designed to look and feel as similar as possible to the native controls in UIKit. Most of the controls make use of 9-patch images to draw their components, in order to accommodate controls of varying sizes. For controls that do not have a native counterpart in UIKit, the iOS style provides a custom look based on colors and styles following iOS' Human Interface Guidelines . The iOS style is not a native iOS style, and as such, can run on platforms other than iOS. However, for the time being, it is made available only for applications running on macOS and iOS and should look the same on both platforms, besides minor differences that may occur due to differences in available system fonts and font rendering engines.

The iOS style in light theme | The iOS style in dark theme

To run an application with the iOS style, see Using Styles in Qt Quick Controls.

### Current state

The iOS style is currently in Tech Preview and is under development. Some controls are not yet supported. Those controls are: BusyIndicator, DelayButton, Dialog, DialogButtonBox, SelectionRectangle and Tumbler. Those will fall back to use the Basic Style.

### Customization

#### Palette

The iOS style supports palette customization via the palette property and the qtquickcontrols2.conf file. As with other styles, the exact palette roles that the iOS style uses are style-dependent. However, as most of the visual appearance of controls (for example: backgrounds) is managed through image assets, only the roles that are typically used for text will have an effect.

## Attached Property Documentation

IOS.theme : enumeration

This attached property holds whether the theme is light or dark.

Available themes:

Constant | Description
--- | ---
`IOS.Light` | Light theme (default)
`IOS.Dark` | Dark theme