Comments (7)
Check out current state.
Currently working with NSFont and NSImage.
Also try via Podfile:
pod 'FontAwesome.swift', :git => 'https://github.com/OliverZiegler/FontAwesome.swift', :branch => 'osx'
Would like to get feedback.
from fontawesome.swift.
+1
from fontawesome.swift.
I started implementing this here but got some issues.
Icons get rendered only 2/3 into the images and labels and rest of icon is cut of at bottom.
Check out the macOS Demo.
If someone has any ideas PRs are welcome.
from fontawesome.swift.
+1
from fontawesome.swift.
I get a bunch of Swift update errors:
Pods/FontAwesome.swift/FontAwesome-macOS/NSImage+FontAwesome.swift:46:110: 'NSFontAttributeName' has been renamed to 'NSAttributedStringKey.font'
Pods/AppKit.NSFontAttributeName:4:12: 'NSFontAttributeName' was obsoleted in Swift 3
Pods/FontAwesome.swift/FontAwesome-macOS/NSImage+FontAwesome.swift:46:167: 'NSForegroundColorAttributeName' has been renamed to 'NSAttributedStringKey.foregroundColor'
Pods/AppKit.NSForegroundColorAttributeName:3:12: 'NSForegroundColorAttributeName' was obsoleted in Swift 3
Pods/FontAwesome.swift/FontAwesome-macOS/NSImage+FontAwesome.swift:46:210: 'NSBackgroundColorAttributeName' has been renamed to 'NSAttributedStringKey.backgroundColor'
Pods/AppKit.NSBackgroundColorAttributeName:3:12: 'NSBackgroundColorAttributeName' was obsoleted in Swift 3
Pods/FontAwesome.swift/FontAwesome-macOS/NSImage+FontAwesome.swift:46:259: 'NSParagraphStyleAttributeName' has been renamed to 'NSAttributedStringKey.paragraphStyle'
Pods/AppKit.NSParagraphStyleAttributeName:3:12: 'NSParagraphStyleAttributeName' was obsoleted in Swift 3
It would also be very nice to have Carthage support for the osx version =)
from fontawesome.swift.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
from fontawesome.swift.
https://github.com/qvacua/CocoaFontAwesome
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.