The following code doesn't work anymore in Beta 5.
let device = UIDevice.currentDevice()
if (device.systemVersion.bridgeToObjectiveC().floatValue < 8.0) {
[skipped]
}
Also, it's not possible to downcast a string to float.
let device = UIDevice.currentDevice()
let version: Float = device.systemVersion as Float
The snippet above returns the 'String' is not convertible to 'Float' error.
Any ideas how should we test the OS version now? Thanks.