Phone Name Lookup in Swift

There is the iPhone's name that can be looked up, and altered, by navigating to: Settings > General > About > Name

How can a Swift application access this name? It is only the device name I seek, not the username.

Answered by spflanze in 756730022

I found the answer here: https://developer.apple.com/documentation/bundleresources/entitlements/com_apple_developer_device-information_user-assigned-device-name It should have been simple, and easy, but now it is made too difficult.

Accepted Answer

I found the answer here: https://developer.apple.com/documentation/bundleresources/entitlements/com_apple_developer_device-information_user-assigned-device-name It should have been simple, and easy, but now it is made too difficult.

Phone Name Lookup in Swift
 
 
Q