<div class="meta" robots="noindex">

</div>

Interface

# iOSStyleChangeObserver

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<div class="warning">

<div class="title">

Warning

</div>

This item was deprecated in version 2022r2. Please use `MobileScreen.AppearanceChanged<mobilescreen.appearancechanged>` as a replacement.

</div>

## Description

Used by controls that need to know when the style of the OS changes, for example, from light mode to dark mode.

## Methods

<div class="rst-class">

table-centered_column_4

</div>

| Name                                                        | Parameters                          | Returns | Shared |
|-------------------------------------------------------------|-------------------------------------|---------|--------|
| `ViewStyleChanged<iosstylechangeobserver.viewstylechanged>` | style As iOSView.UserIntefaceStyles |         |        |

## Method descriptions

<div id="iosstylechangeobserver.viewstylechanged">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

iOSStyleChangeObserver.ViewStyleChanged

**ViewStyleChanged**

Called for controls that support the <span class="title-ref">iOSStyleChangeObserver</span> interface when the style of the OS changes (such as from light mode to dark mode).

## Notes

If you implement this interface on your control, you must implement the method as shown here.

## Compatibility

iOS projects on the iOS operating system.
