Instance Property
availableNumberingSystems
iOS 16.0+
iPadOS 16.0+
Mac Catalyst 16.0+
macOS 13.0+
tvOS 16.0+
watchOS 9.0+
An array containing all the valid numbering systems for the locale.
var availableNumberingSystems: [Locale.NumberingSystem] { get }
Discussion
The following snippet creates a locale for Arabic as used in United Arab Emirates. For this locale, there are two numbering systems available: latn (Latin digits) and arab (Arabic-Indic digits).
let uae = Locale(identifier: "ar-AE") // Arabic / U.A.E.
let numberingSystems = uae.availableNumberingSystems
print("\(numberingSystems.map{$0.identifier})") // ["latn","arab"]