5

Browse SF Symbols on Mac

 3 years ago
source link: https://sarunw.com/posts/browse-sf-symbols/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
In this article

Browse SF Symbols on Mac

19 Jun 2019 ⋅ 1 min read ⋅ iOS SF Symbols

Table of Contents

Apple introduce SF Symbols this year in WWDC 2019, it is a set of over 1,500 consistent, highly configurable symbols you can use in your app.

You simply initialize it with UIImage init(systemName:) or new SwiftUI Image init(systemName:). You can also adjust it width and size to matched your font with some configuration like this.

VStack(spacing: 20) {
Image(systemName: "bag")
Image(systemName: "bag").font(.largeTitle)
Image(systemName: "bag").font(Font.system(.largeTitle).bold())
}
UIImage(systemName: "bag", withConfiguration: UIImage.SymbolConfiguration(textStyle: .largeTitle))

Example of symbols with configuration

This is really great, the only problem is I don't know the name of those 1,500 symbol :(
Luckily Apple provide an app called SF Symbols app hidden in their Human Interface Guidelines page.

SF Symbols App Icon

This wonderful app let you search through those 1,500 icons with ease.

SF Symbols App Screenshot


You may also like

Custom UIHostingController

Learn how to create a custom subclass of UIHostingController and its benefit.

iOS
SwiftUI's ViewModifier

Learn a crucial concept in SwiftUI, view modifier, and a guide of how to create your custom modifier.

iOS
How to change the color of SF Symbols

SF symbols are icon sets that Apple design to work with their system font. Learn how to change its color and how to show them in multicolor style.

SF Symbols

Read more article about iOS, SF Symbols,

or see all available topic

Get new posts weekly

If you enjoy this article, you can subscribe to the weekly newsletter.

Every Friday, you’ll get a quick recap of all articles and tips posted on this site — entirely for free.

Feel free to follow me on Twitter and ask your questions related to this post. Thanks for reading and see you next time.

If you enjoy my writing, please check out my Patreon https://www.patreon.com/sarunw and become my supporter. Sharing the article is also greatly appreciated.

Become a patron

Tweet

Share

Previous
MVC (Missing View Controller)

Where is UIViewController in SwiftUI?

Next
How to use UIKit in SwiftUI

Using UIView and UIViewController in SwiftUI

← Home


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK