Description
InsetsX is a library for Compose Multiplatform that provides WindowInsets, the measurements of system areas such as the status bar, navigation bar, display cutouts and the software keyboard. The aim is one interface for handling those insets on both Android and iOS. It is marked as work in progress, and the author says it will be archived once the official Compose library supports WindowInsets. The README lists which inset each API covers on each platform. For example, WindowInsets.safeArea covers system bars and cutouts on Android and the SafeArea on iOS, while WindowInsets.ime covers the software keyboard on both. Matching modifiers such as safeAreaPadding, systemBarsPadding and imePadding are also provided. Setup involves adding the dependency, and on Android setting the activity's soft input mode to adjustResize for keyboard support and calling WindowCompat.setDecorFitsSystemWindows with false. On iOS, the README suggests WindowInsetsUIViewController if you need the WindowInsetsController. It suits Compose Multiplatform developers who need to lay out content around system bars and the keyboard on both platforms.…
Highlights
- WindowInsets API for Compose Multiplatform
- Same interface on Android and iOS
- Insets for system bars, cutouts, IME and safe areas
- Matching padding modifiers
- Setup steps for Android and iOS
Ratings & Reviews
No ratings yet
Be the first to rate Insetsx.
People also visit
ComposeViews
Compose Multiplatform views, in to Android, Web, Desktop, iOS: Pager, Banner
Insetsx FAQ
What is InsetsX?
A Compose Multiplatform library for handling window insets, such as the status bar, keyboard and safe areas, on Android and iOS.
Is it ready for production?
The README marks it as work in progress and says it will be archived once the official library supports WindowInsets.
Which insets are covered?
Safe area, system bars, navigation bars, status bars, the software keyboard and the safe drawing area, with a table of how each maps per platform.
What setup is needed on Android?
Set windowSoftInputMode to adjustResize for keyboard support, and call WindowCompat.setDecorFitsSystemWindows with false in onCreate.
Is it open source?
The code is public on GitHub. The README lists the dependency to add to a Compose Multiplatform project.
What are the best Insetsx alternatives?
Popular alternatives to Insetsx include Compose Webview Multiplatform, ComposeViews and Sheets. See all Insetsx alternatives




