cruffenach / CRToast

A modern iOS toast view that can fit your notification needs
MIT License
4.17k stars 463 forks source link

Can't set custom notification height in Swift 3 #223

Closed kevinkowalew closed 7 years ago

kevinkowalew commented 7 years ago

I'm trying to set a custom height for a notification, however, it doesn't seem to be working. I've set the NotificationType to Custom and specified a NotificationPreferredHeight, however, the notification only covers the status bar when presented. Any help with this would be greatly appreciated, thanks!

kevinkowalew commented 7 years ago

After some more investigation I resolved this issue by set NSNumber objects for these dictionary values instead of Swift Integers. Not sure if this issue is specific to Swift 3, but nonetheless, this fixed the issue for me