AttributedString

Tips tagged AttributedString.

Automatic plurals with inflect: true

Text("^[\(count) item](inflect: true)") picks "1 item" or "2 items" for you, with no if statements and no plural rules of your own.

18 November 2026 · Text and localization