qmathe / DropDownMenuKit

UIKit drop down menu, simple yet flexible and written in Swift
Other
302 stars 38 forks source link

How can I change the color of drop image or up image? #13

Closed littlemozart closed 7 years ago

littlemozart commented 7 years ago

Hi, I have tried to use "titleView.menuDownImageView.tintColor = UIColor.white" but it didn't work. The color was still black. Any other ideas to change it?

qmathe commented 7 years ago

Hi,

Sorry for the late reply, I was away for a month.

I committed a change to support what you want to do.

If you want to work around this issue for the current release, just change the rendering of up/down images like this:

titleView.menuDownImageView.image = titleView.menuDownImageView.image.withRenderingMode(.alwaysTemplate)
titleView.menuDownImageView.tintColor = UIColor.white
littlemozart commented 7 years ago

@qmathe Thank you for your reply.