Rotate UIBarButtonItem Swift

Viewed 4108

In Swift, I have a hamburger bar button, so when tapped I want that hamburger Bar button to rotate 90 degrees (so that the lines are vertical) and then when you click it again I would like it to go back to it's original state (horizontal)

NOTE: Can you make sure that this works for a UIBarButtonItem, because some solution to a normal UIButton does not work.

3 Answers
Related