ilyainyushin / ISMessages

This is simple extension for presenting system-wide notifications from top/bottom of device screen.
MIT License
296 stars 52 forks source link

iPhone X appearance problem #16

Closed skuske closed 6 years ago

skuske commented 6 years ago

If displayed at the top or at the bottom, messages do show up in the safe areas on iPhone X. Any way to fix that, i.e. make it aware of the safe area layout? Thanks.

hilalbaig commented 6 years ago

I have fixed iPhone X appearance issue in #17

In method - (void)showInMain() add these lines; if ([UIDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPhone && UIScreen.mainScreen.nativeBounds.size.height == 2436) { alertYPosition += (_alertPosition == ISAlertPositionBottom) ? -30.f : 30.f;; }

skuske commented 6 years ago

That is not a complete solution as it does not reflect landscape mode and left<>right safe zones.