This small extension allows you to easily to
1 - Determine if user is signed in to iCloud on their iPhone / iPad 2 - Will return the unique iCloud Token for the user
As this is a unique token you can use it to sort of identify a specific user across multiple iOS devices. The reason is you are not allowed to use the users Apple Id to identify them.
This can be useful if you want to say for example store user (not device) specific details on your server which can then be served to that user acrosss all theri device.
It could have other uses.
Just call the function it will either return the token as a string or if not connected to iCloud then will return a "" string.
Additonal Functions: 3 - Get identifierForVendor - An alphanumeric string that uniquely identifies a device to the app’s vendor 4 - Get Phones Model 5 - Get Phones name identifying the device 6 - Get current version of the operating system
We do not have function to get UDID as as far as we know Apple rejects apps that request it programmatically.