Skip to content

Type Property

searchRules

iOS 16.0+ iPadOS 16.0+ Mac Catalyst 16.0+ macOS 13.0+ tvOS 16.0+ watchOS 9.0+
A collation used for string search.
static let searchRules: Locale.Collation

Discussion

Use this collation only for determining whether to consider two strings as equivalent. Using this collation may modify the string for search purposes. For example, this collation suppresses the contractions in Thai and Lao.

Don’t use this collation to determine the relative order of two strings.