This will give current system version.
NSString *version = [[UIDevice currentDevice] systemVersion]
let version = UIDevice.currentDevice().systemVersion
let version = UIDevice.current.systemVersion