hello everyone, i have a scenario where i have to ...
# compose-ios
k
hello everyone, i have a scenario where i have to use different. insets on 2 screens, On the top level scaffold I have WindowInsets.safedrawing, but for that screen i have to use Windowinsets.ime to remove system bars and give a full screen view. what is the best way to handle this?
@mohamed rejeb
m
I usually have a scaffold for each screen and add a Windoinsets for each screen separately to have more freedom in those cases. Maybe you can have a custom composable to wrap each screen applying Scaffold and Windoinsets to reduce duplication of code.
k
i am doing this according to your second point, but on ios after switching insets bottom bar animations stop working
m
Have you tried to change the Windoinsets depending on what screen is currently displayed? In this case it can be on the top level Composable.
So you set it only once but as a state
k
Yes thats what i am doing
m
Is there any cons?
k
yes bottom bar animations stop working, it stops moving up with keyboard
🤔 1