DimaMishchenko / ExpandableButton

Customizable and easy to use expandable button in Swift.
MIT License
98 stars 16 forks source link

Images appear blue #1

Closed prossir closed 5 years ago

prossir commented 5 years ago

Hello @DimaMishchenko ,

When I use your library the icons i use change from sand (color) to blue. Do you now why? Otherwise all is cool and working as expected.

Thank you.

DimaMishchenko commented 5 years ago

Hello @AntaresR, Thank you for your issue. Unfortunately I can't reproduce this behavior. Can you please provide example of code where you setup ExpandableButton and ExpandableButtonItems. And example of image that you use.

prossir commented 5 years ago

@DimaMishchenko I solve it using . alwaysOriginal

ExpandableButtonItem( image: UIImage(named: "ic_arkit_sand")?.withRenderingMode(.alwaysOriginal), highlightedImage: UIImage(named: "ic_arkit_sand")?.withRenderingMode(.alwaysOriginal), attributedTitle: NSAttributedString( string: "AR", attributes: [.foregroundColor: UIColor.black, .font: UIFont.systemFont(ofSize: 12)]), highlightedAttributedTitle: NSAttributedString( string: "AR", attributes: [.foregroundColor: UIColor.black, .font: UIFont.systemFont(ofSize: 12)]), contentEdgeInsets: UIEdgeInsets(top: 6, left: 6, bottom: 6, right: 6), titleEdgeInsets: title_insets, imageEdgeInsets: image_insets, size: cell_size, titleAlignment: .center, imageContentMode: .scaleAspectFit, action: { _ in print("ic_augment danger") })

Thanks for your interest.

DimaMishchenko commented 5 years ago

Closing issue. If you have any more questions feel free to open new issue.