Closed skuske closed 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;; }
That is not a complete solution as it does not reflect landscape mode and left<>right safe zones.
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.