If you open Settings -> General -> About, it\'ll say Bob\'s iPhone at the top of the screen. How do you programmatically grab that name?
Settings -> General -> About
For Swift 4+ versions, please use the below code:
UIDevice.current.name
Remember: import UIKit
import UIKit
Swift:
UIDevice.currentDevice().name
Swift 3, 4, 5:
In Unity, using C#:
SystemInfo.deviceName;