These values represent the options available to many of the string classes’ search and comparison methods.
SDKs
- iOS 2.0+
- macOS 10.5+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Foundation
Declaration
struct CompareOptions
Overview
See Searching, Comparing, and Sorting Strings for details on the effects of these options.