Upgrade to iOS 12

This commit is contained in:
Ali
2023-09-23 12:38:29 +04:00
parent e72ea579e8
commit b7fbcbf118
26 changed files with 117 additions and 70 deletions

View File

@@ -1302,7 +1302,7 @@ public final class AuthorizationSequenceController: NavigationController, MFMail
public static func defaultCountryCode() -> Int32 {
var countryId: String? = nil
let networkInfo = CTTelephonyNetworkInfo()
if let carrier = networkInfo.subscriberCellularProvider {
if let carrier = networkInfo.serviceSubscriberCellularProviders?.values.first {
countryId = carrier.isoCountryCode
}