Comments (4)
I have noticed this behaviour as well, but I don't think that line is the cause of this issue. If you set the size as a square, the sides are still cut off, so min
/max
makes no difference in that case. I think it should still be min
though, because it should be an icon that fits inside the given size. if you give a size of 100x10, you would still want to see the whole icon, and it should be size 10, shouldn't it? I don't believe that's the same issue though...
from fontawesome.swift.
Yup you're right. The way I get around that right now is looking up the ratio of the icon on fontawesome.io and setting the size of the image accordingly (i.e. if the icon isn't a square don't set the image to one). But this only works by changing max to min.
from fontawesome.swift.
On FontAwesome.io in their fixed width example, they have the width set as 1.28571429em
which I assume is the maximum width:height ratio for their icons. When I get a chance in a few hours, I'll add this magic number into a pull request, along with your min/max fix.
from fontawesome.swift.
Fixed in #47.
from fontawesome.swift.
Related Issues (20)
- FontAwesome icon displayed as question mark - Swift
- Watch OS Support HOT 7
- icon + text = text becomes icon if text match icon name HOT 5
- Support coming for FontAwesome v5.13.1 HOT 15
- FA.swift showing strange icons after update HOT 4
- Cocoapods Says latest version 5.14.0 HOT 7
- used to work now completely broken HOT 2
- [iOS] Some images show question mark instead of actual icon HOT 3
- Retrieve image not work HOT 2
- update Enum file to include pro codes HOT 3
- xCode13 CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler
- Navigation bar button with correct FA icon size
- FontAwsome Pro HOT 1
- Swift icons showing as Question Marks HOT 1
- Nil fontName leads to crash HOT 1
- FontAwesome 6.1 HOT 2
- Swift error HOT 1
- Request to bump iOS deployment target for Xcode 14.X build HOT 1
- New release? HOT 7
- Any support of Privacy Manifest? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fontawesome.swift.