Hello,
how can i get the phone number from swift? is this possible?
regards
Regardless of which programming language you use, Apple doesn't make the phone number associated with a device available to developers.
Apple provides a vendor specific identifier from UIDevice for general identification purposes, but it isn't 100% reliable.
If you want access to phone numbers in Contacts, you can access that information using the AddressBook Framework, but you will need the permission of the user.