SF Symbols

RSS for tag

Enhance your app with a set of symbols that integrate seamlessly with the San Francisco system font.

Posts under SF Symbols tag

40 Posts
Sort by:

Post

Replies

Boosts

Views

Activity

Render Menu Items with Icon (e.g SFSymbol) on Catalyst
Hello, is there a recommended way to render Menu items, e.g in a SwiftUI ContextMenu with icon (SFSymbols)? Let's say I have the following setup: Both buttons render fine on native macOS (e.g Sonoma) but Catalyst refuses to render the symbol at all. I tried every possible combination I could think off. The only way I found was to directly copy and paste a symbol from the SF symbols app and inline it with the label string as unicode. Unfortunately I have a couple custom SF symbols so this isn't really an option for me. I feel like this is a perfectly valid usecase, as it makes the menu visually a lot easier scannable. With UIKit and Ventura this at least worked for Menubar items but now also seems broken on Sonoma. I would greatly appreciate any hints. Thanks!
2
0
665
Nov โ€™23
SF Symbols / SF Pro defunct after upgrade to macOS 14.1.1 (23B81)
Has anyone a workaround here? ...a lot of font shuffling appeared after I upgraded my system to Sonoma. Cant get SF Pro to work in SF Symbols, meaning I cant copy any symbols, since the Apple fonts don't land properly there. Tried to delete all appal fonts, re-download them from Apple, reinstall and reboot the system. Nothing worked. I run all this on a MB Air M2 Any clues, anyone? Super grateful if anyone can help!
1
0
433
Nov โ€™23
Any way to use Symbols including effects in other Apple Apps (FCPX, Keynote)
Hello, I've discovered symbols and it gave me idea that if use them in FCPX or Keynote, it would be lot easier to tell story to people. It is minimalistic and huge library. For example, in a camera review, I would use symbols to describe buttons of it, so in a long run, all cameras have same buttons as working but in different shapes and locations, in a language of symbols, it would a lot easier to understand especially in classic film cameras. ๐Ÿ“ธ This is my first post in Developer Forums, so Hello World! Thanks.
2
0
460
Oct โ€™23
ImageView with systemName partly blurry
The code that has the issue is this ZStack { Image(systemName: icon.isEmpty ? "book.pages.fill" : icon) .resizable() .scaledToFit() .scaleEffect(2.5) .foregroundStyle(.ultraThickMaterial) } the book.pages.fill is completely blurry and the lung is partly blurred. If I remove the .forgroundStyle(.ultraThickMaterial) is is completely blurred. Some icons, tho, are sharp no matter the forgroundStyle is omitted or not. COULD NOT UPLOUD IMAGE Here is the complete code import SwiftUI struct FolderOverviewItemView: View { @Environment(\.colorScheme) var colorScheme @Environment(\.horizontalSizeClass) private var horizontalSizeClass @Environment(\.verticalSizeClass) private var verticalSizeClass var title: String var description: String var icon: String var image: Image? = Image("dummy") var color: Color var body: some View { Grid { GridRow() { Color.clear Color.clear Color.clear Color.clear } GridRow() { Color.clear ZStack { Image(systemName: icon.isEmpty ? "book.pages.fill" : icon) .resizable() .scaledToFit() .scaleEffect(2.5) .foregroundStyle(.ultraThickMaterial) } .gridCellColumns(2) Color.clear } GridRow() { Color.clear Color.clear Color.clear Color.clear } .frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .topLeading) GridRow() { HStack(alignment: .top) { VStack(alignment: .leading) { Text(title) .font(.headline) .lineLimit(1, reservesSpace: true) if horizontalSizeClass == .regular { Text(description.isEmpty ? " " : description) .font(.caption) .lineLimit(2, reservesSpace: true) .truncationMode(.tail) } else { Text(description.isEmpty ? " " : description) .font(.caption) .lineLimit(2, reservesSpace: true) .truncationMode(.middle) } } } .frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .topLeading) .gridCellColumns(4) .padding() .background(.regularMaterial) } } .background( LinearGradient(gradient: Gradient(colors: [color.darken(by: -0.2), color.darken(by: 0.1)]), startPoint: .topLeading, endPoint: .bottomTrailing) ) } }
0
0
420
Oct โ€™23
SF symbol
Hi I'm using Xcode and I was using SF symbol 4 before. I couldn't use it this time tried to download #5. Apparently not working in Canada, App Store said. Right now I have no symbols for my app. thanks Sumer
1
0
396
Oct โ€™23
SF Symbols usability on my app's website
Hi everyone, If Iโ€™m using SF Symbols in my app, am I allowed to use those same symbols on my appโ€™s website? So in other words, I've used SF Symbols in my app to indicate what certain things are. For example "person.fill" to indicate a contact of a person. So now that I'm at a point where I'm developing a site for my app, I'm hoping to use those same symbols to indicate what they are for when the user uses the app. Seems a little silly that I might not be able to use them on my app, but I canโ€™t use them to indicate what theyโ€™re for on my site? Thanks!
3
0
624
Oct โ€™23
SF Symbol image color in the menu bar
I can set color of the SF symbol image in the application window but cannot do the same in the menu bar. I wonder how I can change the color in the menu? import SwiftUI @main struct ipmenuApp: App { var body: some Scene { MenuBarExtra { Image(systemName: "bookmark.circle.fill") .renderingMode(.original) .foregroundStyle(.red) } label: { Image(systemName: "bookmark.circle.fill") .renderingMode(.original) .foregroundStyle(.red) } } } xcodebuild -version Xcode 15.0 Build version 15A240d
3
1
693
Oct โ€™23
Sf Symbol now filled in
I have a strange issue with a custom SF Symbol in Xcode 15 beta 7. It works fine except if the font is body and the weight is regular: The top symbol is body, regular. The bottom is body, medium. All combinations except body, regular work. In the SF Symbols 5 app, the file validates and everything shows correctly. I wanted to attach the svg file, but I can't figure out how ๐Ÿ˜… Is anyone aware of this issue? Or am I the issue?
1
0
487
Aug โ€™23
SKTexture renders SF Symbols image always black
Hi, I'm creating a SF Symbols image like this: var img = UIImage(systemName: "x.circle" ,withConfiguration: symbolConfig)!.withTintColor(.red) In the debugger the image is really red. and I'm using this image to create a SKTexture: let shuffleTexture = SKTexture(image: img) The texture image is ALWAYS black and I have no idea how to change it's color. Nothing I've tried so far works. Any ideas how to solve this? Thank you! Best Regards, Frank
1
0
651
Aug โ€™23
Coloring SFSymbol in code
I'm currently experimenting with SFSymbol animations for iOS 17.0 I have a custom symbol that I like to animate with the Variable Color effect, and I want to set the colors in code. However, coloring the symbol in code doesn't work. What am I missing? Image("my-fancy-custom-symbol") .symbolRenderingMode(.multicolor) .foregroundStyle(.white, .yellow) .symbolEffect(.variableColor, options: .repeating)
0
0
606
Jul โ€™23
Is it possible to use the replace effect with custom symbols and system symbols in SwiftUI?
Hi! I was wondering if it is possible to use the replace effect from a custom symbol to a system symbol. I've tried a if/else to switch from an Image with a custom symbol to an Image with a system symbol to no avail. I assume it needs to be the same Image view when transitioning so I think that's my problem, is there something I'm missing?
0
0
686
Jun โ€™23
Custom SF Symbols not visible in iOS 17 Beta
Hey there! We use a lot of custom SFSymbols in our app. We found a bug in iOS 17 that images has wrong appearance. Sometimes there are shown only parts of their outline, some symbols are totally filled by system (blue) tint color, so they ignore the default color of resource and also ignoring .tintColor parameter. But when we use default Apple SF Symbols they work correctly. Everything works correctly in versions earlier iOS 17 so we want to know is it a bug or we do something wrong? Example of usage SF in our workspace: let image = UIImage(named: "*****_critical", in: Bundle.main, compatibleWith: nil)?.applyingSymbolConfiguration(UIImage.SymbolConfiguration.preferringMulticolor()) let imageView = UIImageView(image: image) imageView.contentMode = .scaleAspectFit imageView.tintColor = myColor Thanks.
1
0
1.2k
Jul โ€™23
Can we use SF Pro fonts in apps?
I'm confused about the SF Pro fonts. Can these be used in our apps? I tried pasting characters from SF Pro into a label, but was unable to get them to display properly. "SF Pro" doesn't appear in the list of available fonts in Xcode. If these are not intended to be used by app developers, then what is their purpose? Are "SF Symbols" different that SF Pro? What about the list of icons that appears in the "Symbols Library" in Xcode? There are so many different sources of symbols and icons, it is very confusing. If any of these sources is OK to use in an iOS app, is it also OK to export them for use in the event that business needs require me to create an alternate version of my app for some hypothentical non-iOS platform? Thanks, Frank
4
1
5.3k
Oct โ€™23
Custom SF Symbol gets error "not interpolatable"
I'm trying to make a custom SF Symbol. I've made some new custom symbols successfully, combining existing SF Symbols, so I understand the process. But as soon as I use vector files from my previous work, I get the error, "The provided variants are not interpolatable." - even though it has shapes made with vector path. Template set up - Variable I use sketch to work on the template I have separate layers for Ultralight-S, Regular-S, Black-S File saved as SVG What is wrong with my template? Thanks!
4
0
2.9k
Sep โ€™23