qmathe / DropDownMenuKit

UIKit drop down menu, simple yet flexible and written in Swift
Other
303 stars 38 forks source link

Error retrieving icon from bundle #31

Closed PasqualePuzio closed 1 year ago

PasqualePuzio commented 1 year ago

Hi,

in some cases this pod can raise an error (and cause a crash) when retrieving an icon from the xcassets file.

This happens when you subclass DropDownTitleView, therefore the pod can't retrieve the bundle in which the icon is supposed to be and finally crashes trying to unwrap a nil value.

The fix is very easy: https://github.com/DigitalGoal-Ltd/DropDownMenuKit/commit/e98532c875641325fae56fa5c48ade2cd8cc51a8

qmathe commented 1 year ago

Hi,

I'll apply your fix later this week-end. Thanks for the report!