home-assistant / Iconic

:art: Auto-generated icon font library for iOS, watchOS and tvOS
Apache License 2.0
1.58k stars 86 forks source link

UIImageView property #28

Closed qclmnt closed 8 years ago

qclmnt commented 8 years ago

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

dzenbot commented 8 years ago

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?

qclmnt commented 8 years ago

Exactly

dzenbot commented 8 years ago

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.

qclmnt commented 8 years ago

Alright, thank you a lot.