stephanheilner / UIDevice-DisplayName

Returns a friendly name for any iOS device.
MIT License
19 stars 13 forks source link

UIDevice-DisplayName

displayName() Returns a friendly name for an iOS device, leaving out the specific type information (i.e. "iPhone X")

displayName(includeType: true) Returns a friendly name for an iOS device, which also includes the device type (i.e. "iPhone X (GSM)")

License

UIDevice-DisplayName is available under the MIT license. See the LICENSE file for more info.

Privacy Manifest

Usage

NSLog("Device Display Name: %@", UIDevice.current.displayName())

NSLog("Device Display Name With Type: %@", UIDevice.current.displayName(includeType: true))