Skip to content

Latest commit

 

History

History
9 lines (5 loc) · 1.04 KB

README.md

File metadata and controls

9 lines (5 loc) · 1.04 KB

Multilingual Searching

This reference project implements the usage of localizedStandardRange(of:) to solve the issues highlighted in Build Multilingual-ready apps from WWD24. Specifically respecting local-specific conventions for spelling.

The project highlights the matched range of the search term in red, demonstrating the solution to another issue highlighted in the same WWDC session. For the best explanation watch 2 minutes of this direct time link. This app used red to be a more extreme and noticable difference, but in a real app you would likely use shades of grey.

The following screenshot shows the search in this app being local-aware (note: Å matches A) and using colour to highlight why the item matched the search term.

A screenshot of the app showing a list of items that match the search term. Each item has the search term highlighted in red to show why it matched the search term.