{"repo":"mori-atsushi/insetsx","free":true,"listed":false,"github":"https://github.com/mori-atsushi/insetsx","clone":"git clone https://github.com/mori-atsushi/insetsx.git","description":"WindowInsets utility for compose multiplatform","language":"Kotlin","stars":234,"topics":["compose-multiplatform","kotlin","kotlin-multiplatform","jetpack-compose"],"license":"Apache-2.0","category":"mobile-apps","readme_excerpt":"InsetsX [🚧 Work in progress 🚧] InsetsX provides a WindowInsets utility for Compose Multiplatform. The goal is to have a unified interface for handling WindowInsets across iOS and Android. Once the official library supports WindowInsets, this library will be archived. Setup To use InsetsX, add the following dependency: Android 1. (option) If you are using insets for IME support, set the activity's windowSoftInputMode to adjustResize in your AndroidManifest.xml file. 2. Call WindowCompat.setDecorFitsSystemWindows() with false in the onCreate method of the activity . Detail: Lay out your app within window insets iOS 1. (option) If you want to use the WindowInsetsController , use WindowInsetsUIViewController instead of ComposeUIViewController . How to use WindowInsets This works much like Android's WindowInsets. Please note that the package name is different. API android ios :-- :-- :-- WindowInsets.safeArea system bars + display cutouts SafeArea WindowInsets.systemBars status bar + navigation bar home indicator + status bar WindowInsets.navigationBars navigation bar home indicator WindowInsets.statusBars status bar status bar WindowInsets.ime 1 software keyboard software keyboard WindowInsets.safeDrawing 1 system bars + software keyboard SafeArea + software keyboard (Modifier) Modifier.safeAreaPadding() system bars + display cutouts SafeArea Modifier.systemBarsPadding() status bar + navigation bar home indicator + status bar Modifier.navigationBarsPadding() navigation bar home","default_branch":null,"files":null,"tree":[],"storefront":"/r/mori-atsushi","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mori-atsushi/insetsx/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}