Implement safeAreaInsets modifier with Compose WindowInsets.safeDrawing.asPaddingValues()
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 330
- Forks
- 76
- Avg merge
- 3h 6m
- Merged PRs (30d)
- 1
Description
We might be able to handle safeAreaInsets with a Compose modifier that uses androidx.compose.foundation.layout.WindowInsets.safeDrawing.asPaddingValues() (see https://developer.android.com/develop/ui/compose/system/insets#inset-fundamentals) to get the padding values and apply them to the view.
A user on Slack reported being able to manually implement this in an #if SKIP block with some success.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the safeAreaInsets modifier and its #if SKIP Android implementation. Read the WindowInsets.safeDrawing.asPaddingValues() documentation and the linked Compose inset guidance first. Done means the modifier applies safe-area padding on Android and the existing behavior remains intact.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, swift
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100