katsuyax / UIDeviceModelName

Extention of UIDevice to get the model name of the iOS devices

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This repository has been archived. Please use https://github.com/katsuyax/CBDevice

Installation

pod 'UIDeviceModelName'

Requirements

Swift3

Usage

import UIDeviceModelName

print(UIDevice.current.modelName) // ex) iPhone 8 , iPhone 8 Plus ...

Supported devices

  • iPhone 3GS
  • iPhone 4 / 4S
  • iPhone 5 / 5s / 5c
  • iPhone 6 / 6 Plus / 6s / 6 Plus
  • iPhone 7 / 7 Plus
  • iPhone SE
  • iPhone 8 / 8 Plus
  • iPhone X
  • iPad 1 / 2 / 3 / 4 / 5
  • iPad Air / Air2
  • iPad Pro 12.9 inch 1 / 2
  • iPad Pro 10.5 inch
  • iPad Pro 9.7 inch
  • iPad mini / mini 2 / mini 3 / mini 4
  • iPod touch / 2G / 3G / 4G / 5G / 6G
  • Apple TV 4
  • Apple TV 4K

License

UIDeviceModelName is available under the MIT license. See the LICENSE file for more info.

About

Extention of UIDevice to get the model name of the iOS devices

License:MIT License


Languages

Language:Swift 88.4%Language:Ruby 11.6%