This commit is contained in:
Peter
2019-08-31 02:09:09 +04:00
parent f1d1754aa5
commit 9a055b4832
38 changed files with 5603 additions and 4228 deletions

View File

@@ -1,7 +1,8 @@
import Foundation
import AppBundle
private func loadCountriesInfo() -> [(Int, String, String)] {
guard let filePath = Bundle.main.path(forResource: "PhoneCountries", ofType: "txt") else {
guard let filePath = getAppBundle().path(forResource: "PhoneCountries", ofType: "txt") else {
return []
}
guard let stringData = try? Data(contentsOf: URL(fileURLWithPath: filePath)) else {