NotificationBanner icon indicating copy to clipboard operation
NotificationBanner copied to clipboard

App crashes on nil bannerPosition when using `.applyStyling`

Open PaulEhrhardt opened this issue 2 years ago • 1 comments

Setting custom title & subtitle fonts using .applyStyling(...) extension forces the lib to update its height via updateBannerHeight(). It then crashes because bannerPosition == nil when a rotation is detected 💣 Happens more often on iPad when resuming activity from the background and the app UI rotates when becoming active again.

I suggest bannerPosition should be treated optional to avoid force unwrapping.

Device: iPad/ iPhone OS: iOS 16.x

PaulEhrhardt avatar May 08 '23 14:05 PaulEhrhardt

Hello, any updates on this?

PaulEhrhardt avatar Jun 16 '23 09:06 PaulEhrhardt