Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Battery 0..4 are rendered truncated #51

Open
jmcazaux opened this issue Sep 30, 2015 · 2 comments
Open

Battery 0..4 are rendered truncated #51

jmcazaux opened this issue Sep 30, 2015 · 2 comments

Comments

@jmcazaux
Copy link

Hi there,
this package is awesome (yes!) and saving us a lot of time, but I am running is something that is either an issue or something I cannot understand.

When doing
let batteryIcon = UIImage.fontAwesomeIconWithName(.Battery0, textColor: UIColor.whiteColor(), size: CGSizeMake(12, 12))
I do get a 12 x 12 image but the battery image fills the space vertically and hence the right part is truncated (as the shape has a larger width).
I tries with ArrowsH that is has a larger width as well and it scales correctly (the icon does not fill the height)

Any idea where it might come from ?

Many thanks in advance.

@jmcazaux
Copy link
Author

jmcazaux commented Oct 2, 2015

I noticed that the icons are actually rendered OK on my iPad. Is it a Retina / non Retina issue ?

@jmcazaux
Copy link
Author

jmcazaux commented Oct 2, 2015

Ok, after further investigations it seems that it is rather related to the OS version.

Within the simulator, it works with a iPad Air 8.4, but breaks on an iPad Air 9.0.

Hope this helps,
JM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant