I'm Yubo, an iOS engineer at TikTok (ByteDance), previously LinkedIn, Yahoo and Ant Financial.
- I write Swift and Objective-C daily, sometimes Java and JavaScript
- Also write some Go, TypeScript and Python
- Flutter is good, but at what cost
A simple and cross-platform SFSymbol picker for SwiftUI
License: MIT License
Hi thanks for making your library,
If you want to programmatically obtain the list of symbols, here you go. It's not a complete example because I didn't handle the category, but they are in the bundle. I figure that it is feasible to get them.
They are located in this bundle: /Library/Developer/CoreSimulator/Volumes/iOS_21A328/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.0.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/SFSymbols.framework/CoreGlyphs.bundle/
More specifically, in this file: name_availability.plist
.
// Read the content of CoreGlyphs
// /Library/Developer/CoreSimulator/Volumes/iOS_21A328/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.0.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/SFSymbols.framework
var symbols = [String]()
if let bundle = Bundle(identifier: "com.apple.CoreGlyphs"),
let resourcePath = bundle.path(forResource: "name_availability", ofType: "plist"),
let plist = NSDictionary(contentsOfFile: resourcePath),
let plistSymbols = plist["symbols"] as? [String: String]
{
symbols = Array(plistSymbols.keys)
}
Thanks a lot for this Swift package!
Do you plan to support categories? Would be awesome to have categorised symbols maybe by adding an option menu on top of the view.
This issue is also very interesting and could help to solve the issue:
#8
Great package. Is there any chance SFSymbols 4.0 could be supported?
Would be fantastic to let the user choose that he does not want an icon.
Thank you for the amazing work btw.
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.