<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/handle-plurals-in-swiftui-text-views-with-inflection-yen9wxbuo" -->

---
title: Handle plurals in SwiftUI Text views with inflection
description: Foundation's automatic grammar agreement feature lets SwiftUI Text views handle pluralization automatically using a Markdown-like inflection syntax. By...
canonical: https://daily.dev/posts/handle-plurals-in-swiftui-text-views-with-inflection-yen9wxbuo
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Handle plurals in SwiftUI Text views with inflection | daily.dev
og:description: Foundation's automatic grammar agreement feature lets SwiftUI Text views handle pluralization automatically using a Markdown-like inflection syntax. By...
og:url: https://daily.dev/posts/handle-plurals-in-swiftui-text-views-with-inflection-yen9wxbuo
og:image: https://api.daily.dev/og/posts/YEN9wxBUO.png
og:image:alt: Handle plurals in SwiftUI Text views with inflection
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Handle plurals in SwiftUI Text views with inflection

**[Nil Coalescing](https://daily.dev/sources/nilcoalescing)** · 3 min read · 0 upvotes · 0 comments

## Summary

Foundation's automatic grammar agreement feature lets SwiftUI Text views handle pluralization automatically using a Markdown-like inflection syntax. By wrapping a value and noun with `^[...](inflect: true)`, SwiftUI processes the string as a LocalizedStringKey and applies grammatical rules at render time — no manual plural logic needed. Introduced in iOS 15 with English and Spanish support, the feature expanded to German, French, Italian, Portuguese, Hindi, and Korean as of iOS 18.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://nilcoalescing.com/blog/HandlePluralsInSwiftUITextViewsWithInflection>

## Similar posts on daily.dev

- [The kind of company I want to be a part of...](https://daily.dev/posts/the-kind-of-company-i-want-to-be-a-part-of--cjzgbhlxm) · Hacker News · 2 upvotes · 0 comments
- [Teach Rails Irregular Plurals with Inflections](https://daily.dev/posts/teach-rails-irregular-plurals-with-inflections-bvltmeu7n) · RUBYLAND · 0 upvotes · 0 comments
- [Create your keyboard for App theme: Customizing Keyboard in SwiftUI](https://daily.dev/posts/create-your-keyboard-for-app-theme-customizing-keyboard-in-swiftui-9x2zf2yf5) · Medium · 0 upvotes · 0 comments

---

Tags: [#swift](https://daily.dev/tags/swift), [#swiftui](https://daily.dev/tags/swiftui), [#localization](https://daily.dev/tags/localization)

[View this post on daily.dev](https://daily.dev/posts/handle-plurals-in-swiftui-text-views-with-inflection-yen9wxbuo)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Handle plurals in SwiftUI Text views with inflection","url":"https://daily.dev/posts/handle-plurals-in-swiftui-text-views-with-inflection-yen9wxbuo","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/handle-plurals-in-swiftui-text-views-with-inflection-yen9wxbuo"},"datePublished":"2026-08-02T07:15:13.408Z","dateModified":"2026-08-02T07:35:17.110Z","description":"Foundation's automatic grammar agreement feature lets SwiftUI Text views handle pluralization automatically using a Markdown-like inflection syntax. By...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/6414ca7c1541eadb9102ea93459672ed?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/6414ca7c1541eadb9102ea93459672ed?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Nil Coalescing","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Nil Coalescing","logo":"https://media.daily.dev/image/upload/s--rcEu6sag--/f_auto,q_auto/v1785654899/logos/nilcoalescing?_a=BAMAMicg0","url":"https://daily.dev/sources/nilcoalescing"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/handle-plurals-in-swiftui-text-views-with-inflection-yen9wxbuo","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"swift,swiftui,localization","timeRequired":"PT3M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Nil Coalescing","item":"https://daily.dev/sources/nilcoalescing"},{"@type":"ListItem","position":3,"name":"Handle plurals in SwiftUI Text views with inflection"}]}
```

