Skip to content

Allow opting out of iosOverflowSafeArea being true by default #6573

@lsapan

Description

@lsapan

Is your feature request related to a problem? Please describe.
Built-in support for iOS safe area is awesome! However, I'm finding that I need to add iosOverflowSafeArea="false" everywhere now. I typically use nested StackLayout components where I would use a div in HTML. They're also great for laying out items horizontally instead of vertically, etc. The problem is that these components are not being used as containers, but simply nested layouts. Obviously NativeScript doesn't know this, so it's adding crazy padding to all of these nested elements on iPhone X, XS, etc.

Describe the solution you'd like
Add an option to make iosOverflowSafeArea false by default. This would allow users to manually set it to true on actual container elements.

Describe alternatives you've considered
This just also naturally makes me wonder if I've been tackling NativeScript development wrong. If users aren't using nested layouts, what are they using? Is there something else I should be doing that I'm not aware of?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions