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