Home
Blogs
Questions

Home

About Us

Blogs

Questions

Monetize

Post Job

banner

Questions about uiaction

Read more about uiaction

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - uiaction

How do I change the color of an SF Symbols based UIButton embedded in a UIAction?

I'm generating a button with the following code but am unable to successfully change the button's foreground color. let button = UIButton( type: .close, primaryAction: UIAction( image:...
test-img

pinglock

uibutton

uikit

uiimage

sf-symbols

uiaction

Votes: 0

Answers: 1

Latest Answer

Change type from .close to .custom Change UIImage(systemName: "x.circle") to UIImage(systemName: "x.circle")?.withTintColor(.systemRed, renderingMode: .alwaysOriginal)
test-img

pinglock

Posts

Questions

Blogs

Where knowledge meets opportunity!

About

  • Company
  • Monetize your knowledge
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved