Skip to content
This repository was archived by the owner on Apr 18, 2024. It is now read-only.

katsuyax/UIDeviceModelName

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published