eonist / DeviceModelName

Returns the apple device as an enum

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DeviceModelName

Returns the apple device as an enum

Example:

Also works in simulator. (Returns the simulator model you are using etc)

Swift.print("UIDevice.modelName:  \(UIDevice.init().modelName)") // iPhone 8

Resources:

About

Returns the apple device as an enum


Languages

Language:Swift 100.0%