my app on iOS feels laggy while rendering. For exa...
# compose-ios
s
my app on iOS feels laggy while rendering. For example, when the keyboard opens it looks like some frames are skipped and no where near as smooth as native iOS apps. Is this a known issue in compose? Or is it something related to my environment? I'm using compose 1.8.2.
v
Ensure you're testing your frame rate issues on a release build (compose optimizes a lot on release builds). If it's still an issue - start looking into optimizing your composables. You might have a lot of unnecessary recompositions. Personally, I'm also using Compose 1.8.2, and I'm seeing no issues whatsoever even on a debug build.
a
Keyboards usually appears for the first time with some lag, even on native apps. Check what kind of keyboard you're using. Custom keyboards in particular cause such lags. Also, make sure you're using the release build.
h
What Andrei said, I've noticed this too in production but the lag ain't enormous and it's only first time However same is in pure iOS app that we do have in production using SwiftUI I could barely notice a difference TBH