iOS Dark Mode Scrolling Area

App running. Swich to Dark Mode. All controls and background change as expected. Except…

There’s a scrolling area in the middle, which contains a big list of words. The words do not change. So, it looks like a big black space. When a new word is entered, all the words then appear in the correct color. It appears that the container control being scrolled does not refresh on the light/dark mode switch.

Is there a way to force the scrolling container to refresh correctly, or is there a way to detect a light/dark mode switch?


Do you have put a background color in controler container ? (set it to transparent)

I found it.

There is an event on the view: appearanceChanged.

From there I manually redrew the container control (I had already written the needed method).

1 Like