Latest 4.0.0
Homepage https://github.com/stephanheilner/UIDevice-DisplayName
License MIT
Platforms ios 9.0, requires ARC

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.

Usage

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": "https://github.com/stephanheilner/UIDevice-DisplayName",
    "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": "https://github.com/stephanheilner/UIDevice-DisplayName.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