We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I've set alpha value for cells at cellForItemAt
func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell { .... cell.alpha = 0.3 return cell }
After I zoom in and out, cell alpha reverts back to 1.
I've tried to set alpha value in referenceViewForPhotoWhenDismissingHandler, but it doesn't work either.
referenceViewForPhotoWhenDismissingHandler
func zoomButtonTouchUpInside() { let galleryPreview = INSPhotosViewController(photos: photos, initialPhoto: currentPhoto, referenceView: cell) galleryPreview.overlayView = CustomGalleryViewOverlay(frame: CGRect.zero) galleryPreview.referenceViewForPhotoWhenDismissingHandler = { [weak self] photo in if let index = self?.photos.index(where: {$0 === photo}) { let indexPath = IndexPath(item: index, section: 0) var cell = self?.collectionView.cellForItem(at: indexPath) as? PhotoGalleryCollectionViewCell cell?.alpha = 0.3 return cell } return nil } present(galleryPreview, animated: true, completion: nil) }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I've set alpha value for cells at cellForItemAt
After I zoom in and out, cell alpha reverts back to 1.
I've tried to set alpha value in
referenceViewForPhotoWhenDismissingHandler
, but it doesn't work either.The text was updated successfully, but these errors were encountered: