Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for safeArea Layout with iOS 11/iPhone X ? #64

Open
yodasl opened this issue Nov 8, 2017 · 2 comments
Open

Support for safeArea Layout with iOS 11/iPhone X ? #64

yodasl opened this issue Nov 8, 2017 · 2 comments

Comments

@yodasl
Copy link

yodasl commented Nov 8, 2017

With the release of iPhone X, apps that use Neon are working without runtime issues, but since the iPhone X has some interesting physical attribute it will be great if Neon could add support for the safeArea layout that is now available. Neon should support the safe area at the top for avoiding any issue with the "notch" of the iPhone X, and since the bottom area with the iPhone X has the visible UI element for dragging up it will be good to have some updated API that could account for it.

@wdcurry
Copy link

wdcurry commented Oct 17, 2018

gentle nudge..

@kuwaitbinary
Copy link

This code helped me with the issue

if #available(iOS 11.0, *) {
    let window = UIApplication.shared.keyWindow
    let topPadding = window?.safeAreaInsets.top
    let bottomPadding = window?.safeAreaInsets.bottom
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants