Latest 4.0.0
License MIT
Platforms ios 9.0, requires ARC

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)")


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


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

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

Latest podspec

    "name": "UIDevice-DisplayName",
    "version": "4.0.0",
    "summary": "Returns a friendly name for any iOS device.",
    "authors": "Stephan Heilner",
    "homepage": "",
    "license": "MIT",
    "description": "UIDevice-DisplayName is a category on UIDevice that returns a displayable name of the device, nbased on the model of device.",
    "source": {
        "git": "",
        "tag": "4.0.0"
    "platforms": {
        "ios": "9.0"
    "source_files": "UIDevice+DisplayName.{swift}",
    "resources": "*.json",
    "requires_arc": true

Pin It on Pinterest

Share This