Reputation: 16102
I'm setting the image of my UIButton to a system icon
Is there a way to set the color inside of the button like this?
Upvotes: 1
Views: 134
Reputation: 30278
Unfortunately there is no built-in way to do this, because the person.circle.fill
symbol does not support multicolor:
You could create a custom symbol and add color there, but this is a lot of work... you'd need to modify each variant.
Instead, I would just
Command
+ C
to copy the symbol, in the SF Symbols appUsage:
struct ContentView: View {
var body: some View {
Image("person.circle.fill")
.resizable()
.frame(width: 50, height: 50)
}
}
Result:
Upvotes: 1