String array not accepting as optiondata
Jaydip-iOS opened this issue · 2 comments
Jaydip-iOS commented
dropdownMenu.options = ["Test1,"test2"]
Error : Cannot assign value of type '[String]' to type '[SwiftyMenuDisplayable]'
KarimEbrahemAbdelaziz commented
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 :)
GMRemie commented
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.