mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Refactor PasscodeUI
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import Foundation
|
||||
|
||||
public func convertToArabicNumeralString(_ string: String) -> String {
|
||||
var string = string
|
||||
let arabicNumbers = ["٠": "0", "١": "1", "٢": "2", "٣": "3", "٤": "4", "٥": "5", "٦": "6", "٧": "7", "٨": "8", "٩": "9"]
|
||||
for (arabic, generic) in arabicNumbers {
|
||||
string = string.replacingOccurrences(of: generic, with: arabic)
|
||||
}
|
||||
return string
|
||||
}
|
||||
Reference in New Issue
Block a user