'iPhone - Detecting eSIM card availability

I want to detect whether an esim card is used on my iphone, note that it is not a sim card and needs to be distinguished from a sim card. I searched a lot of information and didn't find a way, is there another way to detect it? For example, some characteristics to determine



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source