mattmaddux / faswiftui Goto Github PK
View Code? Open in Web Editor NEWEasy Font Awesome in SwiftUI
License: MIT License
Easy Font Awesome in SwiftUI
License: MIT License
Is there any way these can be used in the TabView? When I try to use them on there, All I see is a small box with ? in it.
After I install FASwiftUI it does not show up in the Target Membership section so I'm not able to select it. What could I possibly do to fix this?
Unable to access the search function from package unless adding public to the init of the public class.
Possible you had another mechanism for using the search? if not, one word fix. or I can submit a PR
eg.
let mySearch = FontAwesome().search(query: symbolSearch.lowercased())
results in
'FontAwesome' initializer is inaccessible due to 'internal' protection level
Even though FontAwesome class is public because init is not explicitly public also
adding 'public' to the init() corrects this
I'm not sure if this is because I am using a beta of Xcode, but wanted to report a crash when using this via SPM. When I use
FAText(iconName: "bomb", size: 200).foregroundColor(Color.red)
let fileURL = Bundle.main.url(forResource: "icons", withExtension: "json")!
will crash with trying to access a nil value. I hope to dig a little deeper, but as far as the app is concerned icons.json does not exist.
I'm getting a square with a question mark I'm not sure why this happens.
my code.
FAText(iconName: "bomb", size: 21)
Hi Matt,
The Swift Package only pulls down the new FA6 code if specifying the specific branch. Not done much with Swift Package but presuming it just needs a version update?
Thanks
martyuiop
Awesome library!
But how to disable font scaling impact by system settings? I cant find any API for it, thanks!
When I run my widget in iOS simulator I seems like ok, but when I run it in real device I have crash with "Terminated due to memory error." error in console. When I disable "FAText" its works fine (but without icons). I think this happens because the icons.json file weighs more than 14 megabytes and when lib trying to decode the file into an object it wastes a lot of memory. Do you think there is a way to solve this problem?
in my case I use only solid pro icons
Hey, this repo is missing a License file, I wanna know if I can copy and modify this code.
Followed the integration steps in the readme and everything went well, however when I try to use the icons I only get the question mark in a box. I've tried "bluetooth-b", "signal", and "bomb" used in your example. I've also tried to prefix these with the "fa-" with no luck.
Hi Matt,
when using your Package i get the error: Fatal error: Unexpectedly found nil while unwrapping an Optional value
it appears in class FontAwesome line 30.
let fileURL = Bundle.main.url(forResource: "icons", withExtension: "json")!
Hi, first of all, thank you so much for this library, it saved me a lot of time and nerves
In the dependency file, I found the QGrid library, which is installed with the package, but I didn't find its use in the code itself. The thing is that it is quite heavy and the size of the project increased by 50 megabytes. Please tell me if you need it for your tool or it can be removed?
i've
what am i doing wrong? could you help me?
The current version of FA is 6. Will you be upgrading to support FA 6?
Our project requires the use of sharp fonts:
sharp-solid-900
sharp-regular-400
sharp-light-300
I'm going to create a fork and attempt to add support for these myself.
All of my FATexts are question marks. I tried using the icon by the name of "save" and it worked but no other icons will show.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.