Skip to content

Latest commit

 

History

History
11 lines (9 loc) · 353 Bytes

README.md

File metadata and controls

11 lines (9 loc) · 353 Bytes

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: