diff --git a/Cartfile.resolved b/Cartfile.resolved index 6a9f4a9..b89abdb 100644 --- a/Cartfile.resolved +++ b/Cartfile.resolved @@ -1,2 +1,2 @@ -github "onevcat/Kingfisher" "3.0.1" -github "teambition/PhotoBrowser" "0.5.0" +github "onevcat/Kingfisher" "3.2.1" +github "teambition/PhotoBrowser" "0.5.5" diff --git a/PhotoPicker.xcworkspace/xcuserdata/StormXX.xcuserdatad/UserInterfaceState.xcuserstate b/PhotoPicker.xcworkspace/xcuserdata/StormXX.xcuserdatad/UserInterfaceState.xcuserstate index b5c548e..3d5e6f8 100644 Binary files a/PhotoPicker.xcworkspace/xcuserdata/StormXX.xcuserdatad/UserInterfaceState.xcuserstate and b/PhotoPicker.xcworkspace/xcuserdata/StormXX.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/PhotoPicker/AssetsViewController.swift b/PhotoPicker/AssetsViewController.swift index 22aba81..5f0708c 100644 --- a/PhotoPicker/AssetsViewController.swift +++ b/PhotoPicker/AssetsViewController.swift @@ -52,16 +52,16 @@ class AssetsViewController: UICollectionViewController { override func viewWillAppear(_ animated: Bool) { super.viewWillAppear(animated) - + navigationItem.title = assetCollection.localizedTitle navigationItem.prompt = photoPickerController.prompt collectionView?.allowsMultipleSelection = photoPickerController.allowMultipleSelection - collectionView?.reloadData() - + if assetsFetchResults.count > 0 && isMovingToParentViewController { let indexPath = IndexPath(item: assetsFetchResults.count - 1, section: 0) + collectionView?.layoutIfNeeded() collectionView?.scrollToItem(at: indexPath, at: .top, animated: false) } }