I know that the device's model name can be retrieved with:
let device: UIDevice = UIDevice.currentDevice()
println("device.model: \(device.model)")
The problem is that this does not work when running in the simulation. The result would be:
device.model: iPhone Simulator
It works on the device but I want to know which device the simulator is simulating.
How can I get the Device model name when running on Simulator?