Daltron / NotificationBanner

The easiest way to display highly customizable in app notification banners in iOS
MIT License
4.77k stars 660 forks source link

Broken on iPhone 12 pro #334

Closed dweizhao closed 3 years ago

dweizhao commented 3 years ago

It seems that the following code is broken on iPhone 12 Pro at least. (Didn't try other iPhone 12s)

class func isiPhoneX() -> Bool {
    if UIDevice.current.userInterfaceIdiom != .phone {
        return false
    }
    return UIScreen.main.nativeBounds.height == 2436 // on iPhone 12 Pro, it's 2536
}
zinwalin commented 3 years ago

same here. need help

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 3 years ago

This issue has been automatically closed due to inactivity.