skiptools / skiptools/skip-ui

Implement safeAreaInsets modifier with Compose WindowInsets.safeDrawing.asPaddingValues()

Open
#254 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.