Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Swift plain style unsupported in a navigation item

I am trying to animate my menu icon to when a user taps on the hamburger icon it will animate into a close icon.

So inside my navigation item I have a normal Bar button Item and inside that I have a UIView that I later animate.

But soon as I place the view inside the bar button item I get the warning: plain style unsupported in a navigation item

Everything still works fine but how can I fix this?

I have seen other apps doing it like I do. eg: this one

Thanks

like image 960
Kiwo Tew Avatar asked Jul 30 '15 16:07

Kiwo Tew


1 Answers

So I found a solution.

If you set the bar button item to style > "bordered" the warning goes a away

like image 179
Kiwo Tew Avatar answered Nov 15 '22 21:11

Kiwo Tew