iosswiftcontactsowner

Fetch the Contact from the Device owner


How can I identify that the contact is the holder or owner gf the current device. I need the name from the Device owner. Any suggestions ? Thanks my developer friends and stay healthy.


Solution

  • From the UIDevice class:

    As an example: UIDevice.current.name

    Use a UIDevice object to get information about the device such as assigned name, device model, and operating-system name and version.

    Offical Documentation: Apple Developer Documentation > UIDevice Class Reference