My `fadeIn` and `fadeOut` screen transitions look ...
# compose-ios
r
My
fadeIn
and
fadeOut
screen transitions look weird on iOS dark mode. They however look perfect on Android. Notice the extremely bright white flash on the screen border.
a
Has the background behind the content been set?
⬆️ 2
☝🏼 1
☝️ 1
c
We had similar issue, and as @andrew pointed out we had to set the background in the hosting iOS app, according to the dark/light mode settings, to prevent (white/dark) flashing. In Android usually it is done by the theme, applied to the window of the Activity, thats why there is a difference in the iOS and the Android clients, despite using the same code on the Compose side.
f
it feels like the transition just makes the whole screen dissapears and reappears again
c
That is exactly how fadeIn, fadeOut works. The next screen starts fading in while the current one fadesOut. There is an overlap between the two transitions when both screen is semi-transparent, and that reveals the underlying background of the hosting window.
👍 1