Concerning foldables, the compose material adaptiv...
# compose-ios
m
Concerning foldables, the compose material adaptive library has no iOS implementation of posture at all, needs an update. Open the sources for compose-material3-adaptive and the non-Android
calculatePosture()
returns a shared constant with an empty hinge list. Context: I have a special layout presented in my app when the Hinge is in the vertical
HALF_OPENED
state. As expected, the state isn't triggered in Compose Multiplatform using the current adaptive library.
WindowAdaptiveInfo.nonAndroid.kt
Copy code
@Composable
internal actual fun calculatePosture(): Posture =
    DefaultPosture // Postures and hinges are relevant to android devices only
I believe this needs an update with the coming of the Duo. PS:
safeDrawingPadding()
or
systemBarsPadding()
offsets the center of the layout due to the nav insets on the right side of the Duo.
m
Thank you 🙏