         super.viewDidLayoutSubviews()
         if !didSetInitialPosition {
             if pickerConfig.assetsIsScrollToBottom {
-                let count = AssetsManager.shared.assetArray.count
+                guard let fetchResult = AssetsManager.shared.fetchResult else { return }
+                let count = fetchResult.count
                 if count > 0 {
                     if self.collectionView.collectionViewLayout.collectionViewContentSize.height > 0 {
                         let lastRow = self.collectionView.numberOfItems(inSection: 0) - 1

    
    deinit {
        logd("Released \(type(of: self))")
    }
}


        if traitCollection.forceTouchCapability == .available {
            previewing = registerForPreviewing(with: self, sourceView: collectionView)
        }
        updateCachedAssets()
    }
    
    override open func viewDidDisappear(_ animated: Bool) {
