How to Insert an SF Symbol in a textField or a Label, as text, inn Swift
12:07 22 Aug 2026

In UIKit, Swift, I 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).

SF symbol shows in Xcode strings

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

SF symbol does not show at runtime

Is there a way to achieve this and display the symbol directly as a pure string, like we do with emoji ? Did anything change since 2022: How do I use an SF Symbol in Swift using its symbol literal instead of its name?

ios swift uikit sf-symbols