I'm new in Swift and i want your help please.
I am writing a code from an tutorial swift 2 and i want to write in swift 4.
let imgManager = PHImageManager.default()
let requestOptions = PHImageManager()
requestOptions.synchronous = true //error:Value of type 'PHImageManager' has no member 'synchronous'
requestOptions.deliveryMode = .highQualityFormat // error:Value of type 'PHImageManager' has no member 'deliveryMode'
let requestOptions = PHImageRequestOptions(). Two different instances ofPHImageManagerright after another doesn’t make any sense.