I am trying to detect if there is an Apple ID which is logged in a iOS device.
Basically if user is 1. logged into iTunes or app store. 2. logged into iCloud.
In general if there is a Apple id used in device.
Is there a possible swift way to check?