KarimEbrahemAbdelaziz / SwiftyMenu

Simple and Elegant Drop down menu for iOS 🔥💥
MIT License
577 stars 56 forks source link

String array not accepting as optiondata #8

Closed Jaydip-iOS closed 4 years ago

Jaydip-iOS commented 4 years ago

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

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

KarimEbrahemAbdelaziz commented 4 years ago

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 4 years ago

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.