147 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
3
votes
1
answer
101
views
How to draw tinted monochrome SF Symbol with AppKit
This is super easy with UIKit (imageWithTintColor:) but I need tinted monochrome NSImage in AppKit and no such equivalent exists. I know there is private method in AppKit -[NSImage ...
2
votes
1
answer
160
views
Custom ControlWidgetButton SFSymbol Icon on iOS 26
I'm trying to implement a ControlWidgetButton on iOS 26, and cannot seem to have a custom symbol appear.
As a simple test in SFSymbols, I first duplicated the viewfinder icon as a custom symbol named ...
0
votes
0
answers
93
views
Are custom SF Symbols with `variableValues` supported in SwiftUI?
I'm receiving an "unrecognized selector sent to class" error when trying to set variableValues of a custom SF Symbol in SwiftUI and I can't find any specific documentation about support in ...
1
vote
2
answers
123
views
How to apply symbolRenderingMode to a single toolbar button?
Consider the following code:
struct ContentView: View {
var body: some View {
NavigationStack {
Text("Text")
.navigationTitle("Title")
...
2
votes
0
answers
105
views
Canonical way to export an icon font into SF Symbols
SFSymbols is the official icon library that ships with Apple's SDKs. While being of very high quality and flexible, it's pretty short on symbols, compared to other libraries.
I wonder whether there is ...
2
votes
2
answers
293
views
Aligning Text with SF Symbols in SwiftUI Without Using Frame
In code like this, the varying aspect ratios and side margins of SF Symbols cause the starting positions of the text to be misaligned. How can I fix this? I want to avoid setting fixed frames to ...
0
votes
0
answers
81
views
Animated SF Symbols in tabBar
I use this code to create custom tabBar:
class TabBarViewController: UITabBarController {
override func viewDidLoad() {
super.viewDidLoad()
generateTabBar()
...
user avatar
user25462420
1
vote
1
answer
1k
views
Trying to get SF Symbols to animate (bounce once when pressed on specified tab) in a TabView using SwiftUI
I am trying to get my SF Symbols to animate when I click the tabs at the bottom of the screen. I have it set up where if the user is signed in, it will show the TabView of "Home" and "...
1
vote
0
answers
109
views
How can I change the font weight of an SF Symbol in a List swipe action in SwiftUI?
So it’s really hard to customise SwiftUI List swipe actions. All I want is an SF Symbol checkmark with a bold font weight but iOS insists on rendering it at a regular weight.
Normally you can change ...
2
votes
1
answer
495
views
SF Symbol replace animation size is off
I want to achieve this animation where the wifi symbol is slashed:
It's partly working, but the wifi bars are scaling and moving
I'm using this code:
Image(systemName: showSlash ? "wifi.slash&...
0
votes
2
answers
225
views
how to animate symbols for only one way
How to animate the transition for likes, but not for unlikes?
@State private var liked = false
Button("Like", systemImage: liked ? "heart.fill" : "heart") {
liked....
0
votes
1
answer
303
views
Swift SF Symbol Background Color
I want to set the background image of the "atom" symbol to white with opacity and put the in the centre of the circle.
Currently I have two separate snippets of code and can't workout how to ...
0
votes
2
answers
2k
views
How to apply a .symbolEffect (ie, the animation such as pulse) to an SF system image to a UIButton in UIKit?
Is it possible to apply a .symbolEffect (ie, the animation such as pulse) to an SF system image to a UIButton in UIKit, ie not a SwiftUI app or insert ?
(Pls note that there are a 100 questions ...
0
votes
2
answers
49
views
HStack width changed when button label is changed
I created a HStack to include 3 buttons for TTS speaking control. However, when the middle button state is changed between play and pause. As the width of these 2 buttons is different I think, then ...
0
votes
1
answer
943
views
Swift .symbolEffect disable under condition
I have a SwiftUI Image view structure inside view
Image(systemName: TabBarItem.chat.iconName)
.resizable()
.symbolVariant(localSelection == .chat ? .fill : .none)
...