pod 'UIDeviceModelName'
Swift3
import UIDeviceModelName
print(UIDevice.current.modelName) // ex) iPhone 7 , iPhone 6 Plus ...
- iPhone 3GS
- iPhone 4 / 4S
- iPhone 5 / 5s / 5c
- iPhone 6 / 6 Plus / 6s / 6 Plus
- iPhone 7 / 7 Plus
- iPhone SE
- 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
UIDeviceModelName is available under the MIT license. See the LICENSE file for more info.