KarimEbrahemAbdelaziz/SwiftyMenu

String array not accepting as optiondata

Jaydip-iOS opened this issue · 2 comments

dropdownMenu.options = ["Test1,"test2"]

Error : Cannot assign value of type '[String]' to type '[SwiftyMenuDisplayable]'

Hey Jaydip,
You need to confirm to SwiftyMenuDisplayable for the type you need to support in your menu.
Let me know if you face any other problem :)

Yeah, I had this problem last night was going to reply. I just made an extension to the String that implemented the SwiftyMenuDisplayable protocol, worked fine.