Skip to content

SkipUI should use Compose WindowInsets instead of a _safeArea environment value #493

Description

@dfabulich

https://developer.android.com/develop/ui/compose/system/evaluate-rulers

WindowInsets is the standard API in Jetpack Compose for handling areas of the screen that are partially or fully obscured by the system UI. These areas include the status bar, navigation bar, and on-screen keyboard.

Currently, SkipUI manages the safe area using an internal _safeArea environment value. This creates a lot of tricky busy work, especially in NavigationStack and TabView, making sure that SkipUI's _safeArea lines up with WindowInsets provided by the system.

It would be simpler and better to make SkipUI code work with WindowInsets, adding/consuming padding as we go.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestlayoutSwiftUI/Jetpack Compose layout issuesnavigationIssues with navigation behavior parity between SwiftUI and Jetpack Compose

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions