The variant code for the locale.
SDKs
- iOS 10.0+
- macOS 10.12+
- Mac Catalyst 13.0+
- tvOS 10.0+
- watchOS 3.0+
Framework
- Foundation
Declaration
@property(readonly, copy) NSString *variantCode;
Discussion
Examples of variant code include "POSIX"
and "PREEURO"
.
Use localized
to obtain a version of the value suitable for display to the user.
This property contains the same value returned by the object
method when passing the NSLocale
key.