Closed shalyf closed 6 years ago
Hi!
Thanks for finding this issue! I was initially going to make this become a variable that's modifiable but forgot along the way.
This will be resolved in the upcoming patch (v1.1.3)
It'll be added to PopMenuDefaultAction
and you can directly configure it like:
let action = PopMenuDefaultAction(title: "Some Title", image: UIImage(named: "blah"), color: .gray)
action.iconWidthHeight = 45
@CaliCastle Thanks.
Hi @shalyf,
The suggested enhancement is completed in v2.1.1, let me know if there's any issue or bug, thanks again!
This is a cool popup menu, I like it, and I will use it in my project. But when I add my icon image(size 18 pixel) to PopMenuDefaultAction, It looks ugly. The image is much bigger than I expected. So I looked at the source code and found a problem.
PopMenuDefaultAction.iconWidthHeight
is a static property, I think it should be automatically calculated.iconImageView.widthAnchor
andiconImageView.heightAnchor
should be automatically calculated based on the size of the image.Now I am using a custom
PopMenuAction
namedPopMenuCustomAction
and modifyingPopMenuDefaultAction.iconWidthHeight
to 18 to resolve my problem.Please fix this issue, Thanks.