Inserting a SF Symbol in a textField or a Label, as text

In UIKit, Swift, I would need to insert a SF Symbol into a textField or a label.

The symbol shows correctly in Xcode (in a string in code or in IB).

But at runtime, the symbol is not found and replaced in the TextField by the unfound symbol:

Is there a way to achieve this and display the symbol as a pure string, like we do with emoji ?

display the symbol how? In what context?

You said "button" and buttons already have image support.

I would never use anything other than plain ASCII in source code. That's begging for trouble. But Xcode encourages it and obviously displays it as rich text, with different colours too. You can display rich text with attachments. Maybe that's how Xcode is doing it.

Inserting a SF Symbol in a textField or a Label, as text
 
 
Q