These values represent the options available to many of the string classes’ search and comparison methods.
- iOS 2.0+
- macOS 10.5+
- UIKit for Mac 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
Identifying and Comparing Strings
func isEqual(to: String) -> Bool
Returns a Boolean value that indicates whether a given string is equal to the receiver using a literal Unicode-based comparison.
var hash: Int
An unsigned integer that can be used as a hash table address.
This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.Learn more about using Apple's beta software