Is it normal for ime insets on iOS to be a bit lag...
# compose-ios
g
Is it normal for ime insets on iOS to be a bit laggy? I have a bottom-fixed query bar that lags behind the iOS keyboard open animation for several frames. It’s not terrible, but it’s not smooth.
This is a simulator, but it’s more pronounced on my iPhone SE 2020
a
Is this using
imePadding
g
I’m using a box right now:
Copy code
Box(modifier = Modifier
    .fillMaxWidth()
    .windowInsetsTopHeight(insets = WindowInsets.safeDrawing)
    .background(color = theme.colors.backgroundPrimary),
)
And one on the bottom too
a
replace
windowInsetsTopHeight
with
imePadding
maybe
For the bottom bar
You should also consume the bottom inset separately
g
I think it’s a bit smoother now? Still trying to get the gesture bar area padding to go away when the keyboard open.
I think it’s about the same with
imePadding
. It’s hard to tell on a simulator, but an iPhone SE 2020 definitely shows a bit of lag still.
k
on the ios simulator you can set an animation delay and see how compose insets track system keyboard
👍 1
(set it in the top menu of the simulator)