we were using the below code to fetch the carriers in the device. Now we need to differentiate between e-sim and physical sim. Please confirm how we can achieve that.
let info: CTTelephonyNetworkInfo = CTTelephonyNetworkInfo() if #available(iOS 12.0, *) { if let carriers = info.serviceSubscriberCellularProviders?.values, carriers.count > 0 { for carrier in carriers { if let carrierName: String = carrier.carrierName, carrier.mobileCountryCode != nil, carrier.mobileNetworkCode != nil { carrierNames.append(carrierName) } } } }