Type Method


Returns an NSScanner object that scans a given string according to the user’s default locale.


class func localizedScanner(with string: String) -> Any



The string to scan.

Return Value

An NSScanner object that scans aString according to the user’s default locale.


Sets the string to scan by invoking init(string:) with aString. The locale is set with Scanner.

See Also

Creating a Scanner

init(string: String)

Returns an NSScanner object initialized to scan a given string.

Beta Software

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