Skip to content
New issue

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

To adjust for if collection cell is underneath the nav bar #1

Open
jhrcook opened this issue Aug 7, 2019 · 0 comments
Open

To adjust for if collection cell is underneath the nav bar #1

jhrcook opened this issue Aug 7, 2019 · 0 comments

Comments

@jhrcook
Copy link
Owner

jhrcook commented Aug 7, 2019

In BaseCollectionViewController.referenceImageViewFrameInTransitioningView(for:), after getting the frame of the selected cell, need to add:

if cellFrame.minY < self.collectionView.contentInset.top {
    return CGRect(x: cellFrame.minX, y: self.collectionView.contentInset.top, width: cellFrame.width, height: cellFrame.height - (self.collectionView.contentInset.top - cellFrame.minY))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant