Hi! I noticed that Compose Multiplatform for iOS t...
# compose-ios
m
Hi! I noticed that Compose Multiplatform for iOS takes multiple seconds to render UI widgets on the screen while showing a white screen. I know it’s in alpha currently so this behavior is expected. But, I would like to know the reason
1
👇
l
Is there any sort of splash screen before this? It's possible at least some part of this is due to normal app startup. There will also be delays due to shader compilation if I remember correctly.
m
No splash screen. I’m suspecting it could be due to using image resources “.png”
But that wouldn’t be a valid reason, because the same behavior happened with the sample app in this template repo and they display images in “.svg” format
a
Is this only on the first launch or always?
n
takes multiple seconds
Significantly less than second on my iPhone 8 on the template. And immediately on a subsequent launches. Please check that you compiled your app in Release mode. I've checked other native apps on my iPhone, they also show white screen on startup for awhile if they don't have a splash screen.
There will also be delays due to shader compilation if I remember correctly.
Initial composition for complex scenes + shader compilation
m
It's not the case for me, I can't even notice that white screen. I think that adding a splash screen would fix the problem.
m
This is happening on first launch only. Other than that, the app is shown immediately.
Will check the difference in behavior after adding a splash screen
p
Happens to me on a physical device too( iphone 13 mini). I guess we gotta go for the classic Splash screen as every App out there, either Android or iOS.
a
I get sub second launches on my iPhone 8 on debug mode, too.
a
It’s because of the cold boot, i manually added a splash screen using xcode for ios target