home-assistant/Iconic

UIImageView property

qclmnt opened this issue · 4 comments

Hello guys,

If I want to use UIImageView properties with UIImage coming from iconic font, for example how can I set UIImageView mode to Aspect Fit and get the size of the font adjust with the size of the imageView ?

Thanks
best regards

If I get this right, you're interested in getting an icon's image with dynamic sizing based on the size that fits your image view?

Exactly

That would be very interesting, but it is currently not supported.
The first thing that comes to mind, is to write an UIImageView extension with an icon property, and generate an UIImage as soon as the frame's sizing changes internally to match it's fitting size. This would allow to have a high quality bitmap when needed.

I wouldn't make this part of the library tho.

Alright, thank you a lot.