KarimEbrahemAbdelaziz/SwiftyMenu

setting the current selectedIndex programmatically doesn't show the selecteditem

aviya-smila opened this issue · 2 comments

Hi,
I'm facing an issue when setting the current selectedIndex programmatically doesn't show the selected item.
when trying to debug I noticed that the button does'nt include any uilabel.

I did it on viewDidAppear and it works. Maybe the view is not setting the selection when it's created.

Hi @aviya-smila ,

Just as @jordanjanaq said, you need to set it in viewDidAppear as I didn't set the selection while creating the view.

Thank you :)