Q: Use of Unresolved Identifier 'PHAssetMediaTypeImage' I am using PHAsset in swift. PHAssetMediaTypeImage is not resolved. Can anyone help. 


A: Resolvable this way PHAssetMediaType.Image and PHAssetMediaType.Video
fetch all assets, then sub fetch only the range your need
    var assets = PHAsset.fetchAssetsWithMediaType(PHAssetMediaType.Image, options: fetchOptions){

}

also check apple documentation 

A: In swift, PHAssetMediaTypeImage is just .Image and PHAssetMediaTypeVideo is just .Video:
if asset.mediaType == .Image {

}

if asset.mediaType == .Video {

}

