title: How to fetch "Camera Roll", "Videos", "Favorites", "Selfies" and "Screenshots" in fetch PHAssetCollection statement - swift 4
body: <p>I am working with Photo framework and try to fetch all photos &amp; videos in all albums on iPhone. But the problem is I can't fetch all albums including <strong>"Camera Roll"</strong>, <strong>"Videos"</strong>, <strong>"Favorites"</strong>, <strong>"Selfies"</strong>, <strong>"Screenshots"</strong> and <strong>others albums</strong> with the <code>fetchAssetCollections</code> statement.
  I have only fetched others albums.</p>
  
  <p>I have tried all of the <code>album</code> and <code>subtype</code>, but it doesn't help me.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>var collections: PHFetchResult&lt;PHAssetCollection&gt;!
  
  @objc private func loadPhoto(notification: Notification) {
          if let object = notification.object {
              photoArray.removeAll()
  
              collections = PHAssetCollection.fetchAssetCollections(with: .album, subtype: .any, options: nil)
  
              collections.enumerateObjects { (collection, _, _) in
                  let photoInAlbum = PHAsset.fetchAssets(in: collection, options: nil)
  
                  photoInAlbum.enumerateObjects({ (asset, _, _) in
                      let imageSize = CGSize(width: 200, height: 200)
                      let photoOption = PHImageRequestOptions()
                      photoOption.deliveryMode = .fastFormat
                      photoOption.isSynchronous = true
  
                      PHCachingImageManager.default().requestImage(for: asset, targetSize: imageSize, contentMode: .aspectFill, options: photoOption, resultHandler: { (image, info) in
                          self.photoArray.append(image!)
                      })
                  })
              }
              listPhotoView.reloadData()
          }
      }
  </code></pre>
  
  <p>I expect the output is all the albums including <strong>"Camera Roll"</strong>, <strong>"Videos"</strong>, <strong>"Favorites"</strong>, <strong>"Selfies"</strong>, <strong>"Screenshots"</strong> and <strong>others albums</strong>.</p>